(Move to ...)
▼
Use of #ifdef
#include <iostream.h>
#include <conio.h>
#define print 1 /* macro 'print' definition */
void main()
{
int a = 10 ;
clrscr () ;
a = a + 1 ;
#ifdef print /* if macro 'print' defined */
cout << "a = " << a ;
#endif
getch () ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment