This works perfectly for me.
I tried with VC++6.0 and VS2005Code:#include<iostream> #define PRINT(STR,VAR) \ std::cout<<STR<<"="<<VAR<<std::endl; int main() { PRINT("Variable",10) return 0; }
Bharani
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 19
Thread: macroThreaded View
|
Click Here to Expand Forum to Full Width |