| 1 |
// compound assignment operators |
| 2 |
|
| 3 |
#include <iostream> |
| 4 |
|
| 5 |
#include \ |
| 6 |
<iostream> |
| 7 |
|
| 8 |
#include \ |
| 9 |
\ |
| 10 |
<iostream> |
| 11 |
|
| 12 |
#include \ |
| 13 |
\ |
| 14 |
"iostream" |
| 15 |
|
| 16 |
#include <boost/asio/io_service.hpp> |
| 17 |
#include "boost/asio/io_service.hpp" |
| 18 |
|
| 19 |
#include \ |
| 20 |
\ |
| 21 |
"iostream" \ |
| 22 |
"string" \ |
| 23 |
<vector> |
| 24 |
|
| 25 |
using namespace std; |
| 26 |
|
| 27 |
// |
| 28 |
int main () |
| 29 |
{ |
| 30 |
int a, b=3; /* foobar */ |
| 31 |
a = b; // single line comment\ |
| 32 |
continued |
| 33 |
a+=2; // equivalent to a=a+2 |
| 34 |
cout << a; |
| 35 |
#if VERBOSE >= 2 |
| 36 |
prints("trace message\n"); |
| 37 |
#endif |
| 38 |
return 0; |
| 39 |
} |
| 40 |
|
| 41 |
/* Print an error message and get out */ |
| 42 |
#define ABORT \ |
| 43 |
do { \ |
| 44 |
print( "Abort\n" ); \ |
| 45 |
exit(8); \ |
| 46 |
} while (0) /* Note: No semicolon */ |