(Move to ...)
▼
Use of '#if'
#include <iostream.h>
#include <conio.h>
#define pi 3.142
void main()
{
clrscr () ;
#if pi == 3.142
cout << "The value of pi = " << pi ;
#else
cout << "The value of pi is not defined as 3.142" ;
#endif
getch () ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment