answersLogoWhite

0

To print the output of a C++ console program (or indeed any console program), redirect the output to a file then print the file. If you have a line printer attached to LPT1, redirect to LPT1. Redirection is achieved from the command line. Redirection does not affect error output (std::cerr), only standard output (std::cout).

User Avatar

Wiki User

∙ 12y ago
User Avatar

What else can I help you with?

Related Questions

What are the Example Output of Calculator Program in C plus plus?

example output of c++ calculator


What is the header for basic input or output in C Plus Plus?

For basic input and output in C++: #include


How can you view page by page output in c plus plus?

Pipe the output to the MORE command.


Input output function in c plus plus?

First of all, this is a C forum. C and C++ are -- yes, big shock -- different. Anyhow: the standard output function in C++ is std::cout, and the standard input function is std::cin.


What is used to output data in c plus plus?

You use output devices or streams, typically console screens, printers and files.


How do you get an output of a c plus plus program to be printed?

See sources and related links below.


Is cin an output identifier in c plus plus?

No. In C++ with <iostream>, cin is a prefedined class that represents stdin, so it is an input identifier.


How can you get c and c plus plus output statements to work together?

The C and C++ library routines for output might, or might not, include use of different buffers. If they are the same buffer (unlikely) then you can simply intermix the techniques. If they are not the same buffer then you need to do a flush sequence between techniques.


What is null printer in c plus plus?

There is no such thing as a null printer in C++. You are perhaps thinking of the null device to which output can be redirected from the command line (effectively hiding the output of a program). However this has nothing whatsoever to do with C++, it is entirely dependant upon the operating system.


What are the basic input and output of c and c plus plus?

That is STANDARD input and STANDARD output. By default, standard input is the keyboard, and standard output is the screen. Standard I/O is set by the operating system, though it may be redirected by script invocation or system commands within the C/C++ program itself. You could, for instance, set standard output to a printer or a file in lieu of a screen. You should also Google Standard Error.


What are file modes in c plus plus?

I guess you mean either input/output/inout/append or binary/text.


Your canon imagerunner 4570 copier states remove paper from output tray?

In Ir 4750 Printout remove by hand