Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

#define in cpp

// The #define preprocessor directive creates symbolic constants
#include <iostream>
using namespace std;

#define CONSTANT 2.71828

int main () {
   cout << "Declared constant: " << CONSTANT << endl; 

   return 0;
}
 
PREVIOUS NEXT
Tagged: #cpp
ADD COMMENT
Topic
Name
2+3 =