ace/demo/docs/cpp.cpp
2011-08-16 13:37:50 +02:00

13 lines
No EOL
193 B
C++

// compound assignment operators
#include <iostream>
using namespace std;
int main ()
{
int a, b=3; /* foobar */
a = b;
a+=2; // equivalent to a=a+2
cout << a;
return 0;
}