Output Printing
-
This is the code and it does not work. I am getting 5 error messages when compiling. If someone could give me assistance from //#include to //{ I would appreciate it. Do I have the function in the right place? That sort of thing. You guys have really been helpful. I want to be able to print the output of a C++ program after I compile,build, and run it. All I get now is an exe file with no option to print. Could anyone be of assistance to this novice? #include #include #include #include using std::cout; using std::cin; using std::fixed; using namespace std; //#include int main() //(int,char*) //{ //ofstream printer ("lpt1:"); //Printer <<"test"<
-
This is the code and it does not work. I am getting 5 error messages when compiling. If someone could give me assistance from //#include to //{ I would appreciate it. Do I have the function in the right place? That sort of thing. You guys have really been helpful. I want to be able to print the output of a C++ program after I compile,build, and run it. All I get now is an exe file with no option to print. Could anyone be of assistance to this novice? #include #include #include #include using std::cout; using std::cin; using std::fixed; using namespace std; //#include int main() //(int,char*) //{ //ofstream printer ("lpt1:"); //Printer <<"test"<
Was this not answered here? BRIMID wrote: This is the code and it does not work. I am getting 5 error messages... While you failed to indicate what those five error messages were, I would start by putting a closing brace at the end of
main()
. BRIMID wrote: I want to be able to print the output of a C++ program after I compile,build, and run it. All I get now is an exe file with no option to print. Could anyone be of assistance to this novice? Was this not of any help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
This is the code and it does not work. I am getting 5 error messages when compiling. If someone could give me assistance from //#include to //{ I would appreciate it. Do I have the function in the right place? That sort of thing. You guys have really been helpful. I want to be able to print the output of a C++ program after I compile,build, and run it. All I get now is an exe file with no option to print. Could anyone be of assistance to this novice? #include #include #include #include using std::cout; using std::cin; using std::fixed; using namespace std; //#include int main() //(int,char*) //{ //ofstream printer ("lpt1:"); //Printer <<"test"<
I think you can get rid of these lines:
using std::cout; using std::cin; using std::fixed;
My articles www.stillwaterexpress.com BlackDice
-
This is the code and it does not work. I am getting 5 error messages when compiling. If someone could give me assistance from //#include to //{ I would appreciate it. Do I have the function in the right place? That sort of thing. You guys have really been helpful. I want to be able to print the output of a C++ program after I compile,build, and run it. All I get now is an exe file with no option to print. Could anyone be of assistance to this novice? #include #include #include #include using std::cout; using std::cin; using std::fixed; using namespace std; //#include int main() //(int,char*) //{ //ofstream printer ("lpt1:"); //Printer <<"test"<