Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

define in cpp

#include <iostream> 
  
// macro definition 
#define LIMIT 5 

int main() 
{ 
    for (int i = 0; i < LIMIT; i++) { 
        std::cout << i << "
"; 
    } 
  
    return 0; 
} 
 
PREVIOUS NEXT
Tagged: #define #cpp
ADD COMMENT
Topic
Name
7+3 =