C++ preprocessor directives

Description

C++ preprocessor directives

#include <iostream>
using namespace std;
#define AGE 28//from   w  ww . j  a  va  2s.c om
#define MESSAGE "Hello, world"
int main()
{
   int i = 10, age;   
   age = 5;           
   i = i * AGE;       
   cout << i << " " << age << " " << AGE << "\n";
   cout << MESSAGE;   
   return 0;
}



PreviousNext

Related