Does anyone know how I can possible stop control and z mucking up my code? Example below;
const int MAX_BUFFER=256, MAX_LEVEL=10;
void main()
{
char Buffer[MAX_LEVEL][MAX_BUFFER];
int Level=0;
for(Level; Level < MAX_LEVEL; Level++)
{
cout << "Please enter password for level " << Level+1 << ": ";
cin.clear(); //Clear fail bit if stream errors
cin.get(Buffer[Level],MAX_BUFFER,'\n');
cin.ignore();
cout << endl;
}
}
Thanks in advance.