Well, I'm looking to apply some functionality to my code, first i'm trying to make a var go from point x to y and then back from y to x.
int x = 0;
void Bande::printmessage()
printf("Var %d Xy to Yx: %d\n", x < 10 ? x++ : x-- );
}
int Bande::TestMessage()
{
for(int i = 0; i <= 10; i++) //loop just to execute the function X times
Bande::printmessage();
return 0;
}
Any idea how I can do Increment and decrement and then go back?
that way I tried always returns 10 and 9 when it arrives at 10