I have the following code. When something like jackpot is inputted, it prints out the cout 8 times, once for each character. Why is it doing this? Information is a structure and number is an integer.
do { cout <<"Please input a valid number."<< endl; cin>>information.number; if (!cin) { cin.clear(); cin.ignore(); } } while(information.number> 12 || information.number< 1);