I have an infinite loop in a program that I can't resolve. The loop doesn't always take place. Sometimes it doesn't. I need Help. Review me code and reply please. Thanks. P.S. Don't laugh at my code.
using namespace std;
char name, file;
int choice, number;
cout<<"Please enter the name of the file you wish to work with.\n(Remember the extension!)\n";
cout<<"There was an error handling the requested file.\n";
cout<<"What would you like to do?\n1. Insert a persons name and phone number\n2. Sort with Bubble Sort\n3. Sort with \n4. Exit\n";
cout<<"Please enter the person's name then their phone number (numbers only, no spaces).\n";