I'm trying to figure out how to use: #define, #ifdef, and #endif with my code (with no luck).
During debug, i want the couts in there to appear, but then i want a quick and easy way to remove/comment out any of the cout arguments there. For example, how would i incorporate it into this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#define // <----- what in here?
#ifdef // <------ something that looks at cout?
#endif // <------- goes here, or below main body of code?
int main(){
float x = 10;
cout << "x = " << x;
return 0;
}