#include using namespace std; void prettyPrintInt(int x){ char tmp[21]; sprintf(tmp, "%10i", x); cout << tmp; return; } void prettyPrintDouble(double x){ char tmp[21]; sprintf(tmp, "%10.2lf", x); cout << tmp; return; } void prettyPrintString(string s){ char tmp[21]; sprintf(tmp, "%10s", s.c_str()); cout << tmp; return; }