Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void CppPrint() // C++ streams
{
ofstream f("PRN:");
if (f)
{
f << "Hello World!" << endl;
}
else
cerr << "Can\'t open stream on PRN:" << endl;
// Destructor closes f...
}
void CPrint() /* C FILE* streams */
{
FILE* f;
f = fopen("PRN:","w");
if (f)
{
fprintf(f,"Hello World!\n");
fclose(f);
}
else
printf("Can\'t open printer file\n");
}
myprog >prn: