Is it possible to print something from a program
Yes.

Unfortunately there is no support for that in c++. You will have to use some other libraries/tool than thoose in standard c++. If you are programming in Windows there are surely some useful resources.