I'm really not understanding what you're asking...
...if you're talking about an actual print (that prints ink on a sheet of paper), then the simplest way would be to just open the printer port as a file and output to it like you would a text file.
Code:
#include <fstream>
int main() {
std::ofstream Printer;
Printer.open("LPT1"); // This may not nessasarily be your printer port.
Printer << "PRINTED TEXT. \f"; // The \f is formfeed.
Printer.close();
return 0;
}
Also, you should understand that this has a ton of flaws. It only works assuming your printer can recieve plain text. For example, a PostScript printer won't print unless the output is coming through a PostScript printer driver. If you want to do it correctly, then look into some documentation on Windows XP and find out how to send the output to the OS's printer manager.