C++ #define PRINT

Posted by Vincius Prado da Fonseca on May 21, 2014

A simple tip to put a PRINT command and save some time with cout << blablabla << endl; and this stuff.

#define PRINT(val) \
		cout << val << endl
#define PRINTTXT(txt, val) \
		cout << txt << endl << val << endl
=]