How do I use a printer in C++?
C++ itself, with its defaults libraries, does not provides direct support for printing. It depends, on a lower level, on the operating system you are using and the printing engine of your system. On a higher level, you may use a C++ library that provides an abstraction layer for printing over the operating system interface.
For instance, you may use the Gtkmm library, that provides such printing abstraction, and also provides a very good documentation full of examples on how it works.
精彩评论