Search:

Type: Posts; User: harryP

Search: Search took 0.01 seconds.

  1. Replies
    38
    Views
    140,075

    Sticky: I saw you used 'getch()' after showing the...

    I saw you used 'getch()' after showing the directions, which is of course fine. But after that's been done, the same issue occurs if you usen cin before cin.get(). That's the point of the GetKey()...
  2. Replies
    38
    Views
    140,075

    Sticky: I don't know about your multiple .cpp files...

    I don't know about your multiple .cpp files problem, but this is actually what the GetKey() function looks like:


    // gets a key
    int GetKey() // created by Red_Baron who got help with it from...
  3. Replies
    38
    Views
    140,075

    Sticky: Perhaps I'm wrong, but the way I do it is with...

    Perhaps I'm wrong, but the way I do it is with getch(). Because it takes the ASCII value of the key pressed, which is what is defined in red_baron's code. In my game, I had to do that, too. cin...
Results 1 to 3 of 3