You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
761 B
C++
44 lines
761 B
C++
10 years ago
|
// compound assignment operators
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
#include \
|
||
|
<iostream>
|
||
|
|
||
|
#include \
|
||
|
\
|
||
|
<iostream>
|
||
|
|
||
|
#include \
|
||
|
\
|
||
|
"iostream"
|
||
|
|
||
|
#include <boost/asio/io_service.hpp>
|
||
|
#include "boost/asio/io_service.hpp"
|
||
|
|
||
|
#include \
|
||
|
\
|
||
|
"iostream" \
|
||
|
"string" \
|
||
|
<vector>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main ()
|
||
|
{
|
||
|
int a, b=3; /* foobar */
|
||
|
a = b;
|
||
|
a+=2; // equivalent to a=a+2
|
||
|
cout << a;
|
||
|
#if VERBOSE >= 2
|
||
|
prints("trace message");
|
||
|
#endif
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* Print an error message and get out */
|
||
|
#define ABORT \
|
||
|
do { \
|
||
|
print( "Abort\n" ); \
|
||
|
exit(8); \
|
||
|
} while (0) /* Note: No semicolon */
|