home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR13
/
TI_BC1.ZIP
/
TI1565.ZIP
/
TI1565.ASC
Wrap
Text File
|
1993-10-06
|
978b
|
67 lines
PRODUCT : Borland C++ NUMBER : 1565
VERSION : All
OS : All
DATE : October 6, 1993 PAGE : 1/1
TITLE : Creating a C++ stream to output to the printer
//--------------------------------------------------------------
//
// Here is sample source for creating cprn, a C++ stream
// attached to stdprn (i.e. file handle 4 )
//
//--------------------------------------------------------------
#include <fstream.h>
char *prnbuff = new char[1024];
ofstream cprn( 4, prnbuff, 1024 );
int main(void)
{
cprn << "Hello world." << endl;
return 0;
}
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.