Platinum Partner

Print Variable Macro

 A simple macro to print out a variable in c++
 Usage:
     int x = 5;
     string myString = "hello";
     prt(x);
     prt(myString);
 
 Output:
     x = '5'
     myString = 'hello'


#define prt(x) std::cout << #x " = '" << x << "'" << std::endl;

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}