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; 
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #define #cpp
ADD COMMENT
Topic
Name
1+2 =