i need to sort 3 values: -1, 0, 1. They are received from a function. Is there an easy way to do this without using a bunch of "if" statements.
put them in a vector and run sort()
you'll need to include vector and algorithms
...more information would help-- there are several ways to interpret your post...
Yes -- please provide more information. If you know the three values are -1, 0, and 1, then why do you
have to sort them algorithmically?