Convenient print statement for C++