Re: PRINT a text to printer
outdated!!! pfff! Grrr, OK, perhaps a litle, but still damn usefull!
#include < iostream.h >
#include < fstream.h >
ofstream printer; // ofstream means out file stream
cout<<"Enter a word (Max 14 chars): ";
printer << "The values are: " << i <<" " << fval <<" "<
Thats an example of how to use lpt1,
I'm not too sure about USB printers, I don't think you can just write to the device in the same way you could LPT1, there might be some kind of driver you have to interact with.