No, you can combine them into a single line, although that could involve an eye-popping amount of bracketting so you may want to split things up a bit. But you can use them inline -
double x, y, z;
z = (sin(x) + cos(y);
-or-
z = (2 * (sin(x) + cos(y));
..or as complicated as you need to get.
__________________
If you always do what you've always done, you'll always get what you've always gotten
|