When I run my program, everything executes as written. But, when it gets to the while-loop statement, my 'cout' statements work, but my 'cin' statements do not. Can anyone tell me what's going wrong?
while(ans == 'y' || ans == 'Y')
{
cout << "Hello world! Welcome to Lab 11 Inventory Management System" << endl << endl;
int choice = 0, numofinv = 0, cnt = 0;
cout << "Enter your inventory: ";
cin.get(items1, item_size);
cout << "\n\nType in your file to open, without spaces [Default is 'Inventory']: ";
cin >> inv_file;
cout << "\n\nType in a name for your new file: ";
cin >> new_file;