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. Managed C++/CLI
  4. User stops loop.

User stops loop.

Scheduled Pinned Locked Moved Managed C++/CLI
helpc++
3 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.
  • N Offline
    N Offline
    Naturality
    wrote on last edited by
    #1

    Hi, I'm fairly new to C++ and I have a tricky problem with a program I am writing. I have a loop in place to it keeps showing the data, but I would like a way for the user to be able to stop that. I have got a snippet of code to pause a program, and want to see if i can use it for this. void pause() { std::string response; std::getline(std::cin, response); goto (whatever); } Basically, as you can tell, when the user presses enter, the program goes to another point. or at least I think it does. Any help would be much obliged.

    G 1 Reply Last reply
    0
    • N Naturality

      Hi, I'm fairly new to C++ and I have a tricky problem with a program I am writing. I have a loop in place to it keeps showing the data, but I would like a way for the user to be able to stop that. I have got a snippet of code to pause a program, and want to see if i can use it for this. void pause() { std::string response; std::getline(std::cin, response); goto (whatever); } Basically, as you can tell, when the user presses enter, the program goes to another point. or at least I think it does. Any help would be much obliged.

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      You need to post your question in the Visual C++ forum. You only get C++/CLI (.NET Framework) answers here!

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      N 1 Reply Last reply
      0
      • G George L Jackson

        You need to post your question in the Visual C++ forum. You only get C++/CLI (.NET Framework) answers here!

        "We make a living by what we get, we make a life by what we give." --Winston Churchill

        N Offline
        N Offline
        Naturality
        wrote on last edited by
        #3

        OK!

        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