I have one question using cin.get(). I have posted the code below. The problem is, when I run the program it terminates right away, and doesnt wait for the user to input the information. Why?
// declerationsCode:void get_info() { cout << "Enter the blocker hand (L or R)"; cin.get(blocker_hand, HAND); cout << endl; cout << "Enter the glove hand (L or R)"; cin.get(glove_hand, HAND); }
private:
char glove_hand[HAND];
char blocker_hand[HAND];
and HAND is a constant of length 1.
There is more code to the actual program, but this is the only part causing the problem.
Thanks