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. "cout" and "cin" won't work

"cout" and "cin" won't work

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelp
5 Posts 2 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.
  • V Offline
    V Offline
    Verolix
    wrote on last edited by
    #1

    I use Microsoft Visual Studio .NET 2003 and creating an unmanaged program. I included iostream but its functions (like cout and cin) still won't work. Help me! P.S.: I want an UNMANAGED (not-.NET) program.

    J 1 Reply Last reply
    0
    • V Verolix

      I use Microsoft Visual Studio .NET 2003 and creating an unmanaged program. I included iostream but its functions (like cout and cin) still won't work. Help me! P.S.: I want an UNMANAGED (not-.NET) program.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Without further info it is hard to tell what kind of problem you've run into. Even so, I might risk the following: are you using cout or std::cout (same for cin)? It is the latter that you should be using. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Want a Boost forum in Code Project? Vote here[^]!

      V 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Without further info it is hard to tell what kind of problem you've run into. Even so, I might risk the following: are you using cout or std::cout (same for cin)? It is the latter that you should be using. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Want a Boost forum in Code Project? Vote here[^]!

        V Offline
        V Offline
        Verolix
        wrote on last edited by
        #3

        By using the std namespace you make the program managed (at least I think so). I need a pure C++ program, without any .NET elements.

        J 1 Reply Last reply
        0
        • V Verolix

          By using the std namespace you make the program managed (at least I think so). I need a pure C++ program, without any .NET elements.

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          By using the std namespace you make the program managed (at least I think so). No no, the std namespace has nothing to do with managed/unmanaged code. You can use it. Believe me :) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Want a Boost forum in Code Project? Vote here[^]!

          V 1 Reply Last reply
          0
          • J Joaquin M Lopez Munoz

            By using the std namespace you make the program managed (at least I think so). No no, the std namespace has nothing to do with managed/unmanaged code. You can use it. Believe me :) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Want a Boost forum in Code Project? Vote here[^]!

            V Offline
            V Offline
            Verolix
            wrote on last edited by
            #5

            Thanks. :)

            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