Trying to get this code to clear, but when the program runs, I am getting an error.
Here is the code:
string getCategory() //Get the category.
cout << "Please select a category that matches the bill: "
<< "Medical (M), House (H), Credit (C)";
cin >> toupper(cchoice);
case 'M': category = "Medical";
case 'H': category = "House";
case 'C': category = "Credit";
default : cout << "Incorrect Selection, please try again!\n\n";
}while ((cchoice != 'M') || (cchoice != 'H') || (cchoice != 'C'));
Here is the error that it is pulling:
1>c:\users\kenneth\desktop\bill organizer program\bill organizer\bill organizer\bill organizer.cpp(26) : error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)
Please help me to understand where I am making the mistake. Keep in mind, this is just the function out of a class.