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
S

Spherelin

@Spherelin
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • cin causes infinite loop in my program
    S Spherelin

    I am writing this program where I read in a line of text. I am able to enter the text just fine and it stores okay, but then when I go to prompt user for another entry (such as an integer) I get an infinite loop because it is waiting for a valid entry. example: cout << "please enter a string of characters."; cin.getline(tempstringgoeshere, BUFFER); int selection = 0; while(selection < 1 || selection > 5) { cout << "Please make a selection:"; cin >> selection; // DOES NOT LET ME ENTER ANYTHING HERE - GOES PAST } Suggestions? Thanks, G

    C / C++ / MFC tutorial question

  • using an ADT object [modified]
    S Spherelin

    okay thanks - that fixed it! hey so if I am entering a number via a statement like: cin >> selection how do I clear cin for the next use. basically, user is going to enter a number (text entry program...for now). and then the next entry is going to be characters - like a name or state. Right now, it seems to take the strike of the return key as the second entry. THanks, G

    C / C++ / MFC c++ tutorial question

  • using an ADT object [modified]
    S Spherelin

    I am working on a C++ class project in MSVC. I have declared: class Node { private: . . . public . . . }; now in a separate file, I want to declare: class Employee { private: Node alphabetagamma; // for example . . public: . . . }; When I do this I get compile time errors indicating that the compiler does not recognize "Node" as a type of object. I am including the header files correctly in my implementation (.cpp) files. What am I forgetting? Thanks, Geoff:(( -- modified at 5:02 Friday 1st December, 2006

    C / C++ / MFC c++ tutorial question
  • Login

  • Don't have an account? Register

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