Hello I am a brand new programmer just starting to learn C++. Iv been following a book but iv hit a bit of a snag. The book gave me this example code for a loop:
int main()
{
int i(1), sum(0);
const int max(10);
loop:
sum += i;
if (++i <= max)
goto loop;
cout << endl
<< "sum = " << sum << endl
<< "i = " << i << endl;
return 0;
}
It works but the book does not explain what ++ or += does. The rest of the examples all use ++, --, and += as well so im at a bit of a roadblock here.