I am a complete beginner but i can't seem to find an answer via Google, etc.
The simple question is... How do i output a simple string to a printer instead of the monitor? Seems like day 1 lessons. Why is it so hard to find the answer on the internet?
I'm trying to learn C++ with books but even they don't answer this simple question. How can i write a usable program without knowing the basics of printing?
Any help would be much appreciated. please don't sent me to a dead link either.
The easiest way is simply to redirect stdout/cout from to a printer when you run your program. Specifics can vary depending on what OS you are running.
In Windows, go to printer properties, select the port tab and find the port name for the printer you want: