Quote Originally Posted by souldog
1. Don't use the Macro.

2. You forgot the semicolon, you forgot <<

#define PRINT(STR,VAR) \
cout << STR << " = " << VAR << endl;
it doens't work; I copied this example in TC++, chapter "the C in c++";
at the moment I'd like learn something about macro...