but instead uses the absolute value of the inputs for comparison.
At the very least, it should be calling your absValue function a few times.
Even better, it should be calling orderTest to do the bulk of the work."
to demonstrate that they work correctly.
/*orderTest - orderTest is a function that accepts three integer input parameters, x, y, and z.
the absolute value of the input. It should produce no output on its own.
1. None of your sub-functions should contain cout statements.
Salem c what do you mean by "sub-function" ? should I rewrite any of the other code ?
Like orderTest is both a sub-function of main, and of orderTestAbs.
The whole purpose of a function is to have a clearly defined purpose.
Doing something, and then printing it out to cout are two things.
- what if I didn't want it printed?
- what if I wanted it printed somewhere else?
Thanks a lot salem c, appreciate it !