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. C++ - Reading from Console without Echo.

C++ - Reading from Console without Echo.

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
4 Posts 3 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.
  • J Offline
    J Offline
    Jijo Raj
    wrote on last edited by
    #1

    Dear C++ Gurus, I need to read a string from console without echo. I need to use C++ not C. In C there are functions, but couldn't find a similer in C++. Please help. Regards, Jijo.

    ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

    D 1 Reply Last reply
    0
    • J Jijo Raj

      Dear C++ Gurus, I need to read a string from console without echo. I need to use C++ not C. In C there are functions, but couldn't find a similer in C++. Please help. Regards, Jijo.

      ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

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

      Jijoraj wrote:

      ...read a string from console without echo.

      What exactly does this mean?


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      S 1 Reply Last reply
      0
      • D David Crow

        Jijoraj wrote:

        ...read a string from console without echo.

        What exactly does this mean?


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        I assume when keys are pressed he wants to read them in and process them without them being displayed on the screen.

        Steve

        D 1 Reply Last reply
        0
        • S Stephen Hewitt

          I assume when keys are pressed he wants to read them in and process them without them being displayed on the screen.

          Steve

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

          If that is so, then getch() is a possibility.


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          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