|
From: Lloyd A. <ll...@ea...> - 2004-02-16 03:18:59
|
In Console mode how about something like this.
This sends characters to my printer que (in XP), but I can't get it to
the printer.
#include <fstream.h>
int main()
{
char* s1 = "\nToday's winning number is ";
int n1 = 17982;
ofstream outfile;
outfile.open("PRN");
outfile << s1 << n1 << endl;
outfile << '\x0D';
return 0;
}
Lloyd
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Lloyd
Ashmore
Sent: Saturday, February 14, 2004 4:50 PM
To: dev...@li...
Subject: [Dev-C++] Printer output
Can someone show me how to get simple output to the printer.
I am also interested in being able to send a file to the printer.
Thanks in advance
Lloyd
|