Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Output Printing

Output Printing

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BRIMID
    wrote on last edited by
    #1

    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"<

    D B T 3 Replies Last reply
    0
    • B BRIMID

      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"<

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B BRIMID

        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"<

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        I think you can get rid of these lines:

        using std::cout;
        using std::cin;
        using std::fixed;
        

        My articles www.stillwaterexpress.com BlackDice

        1 Reply Last reply
        0
        • B BRIMID

          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"<

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          sorry but, when i read your code, i can't see anything beetween //#include and //{ , except the main header. Visibly, you are missing some code, or the <> were understood as HTML tags by IE


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups