I have searched the board but cant seem to find my problem sorry if im repeating old problems.
I can not seem to get the first cin.get(numerator); to get its input, seems to like.. skip it.. i tried clearing it even though the input before hand to me doesnt seem to be getting in the way. The function doesnt have any parameters.
thanks for your help.Code:int enterFraction(void) { char numerator, denominator; cout << "\nEnter a fraction in the format A/B: "; cin.get(numerator); cin.ignore(50,'/'); cin.get(denominator); // testing variables cout << numerator << "/" << denominator << endl; }