Console display functions written in C++