Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Macros in c++

#define var(datatype, name, value) datatype name = value;

int main()
{
 var(string, hello, "Hello World!");
 cout << hello;
 
 //Hello World!
}
 
PREVIOUS NEXT
Tagged: #Macros
ADD COMMENT
Topic
Name
9+9 =