hi my program keeps skiping my switch function any ideas??
p.s this is just a snipit also using quincyCode:int main (void) { people datab; store tdata; char any; char choice; char choice2; float count = 0; float count2 = 0; int c; tdata.clearary(); cout<<"\nThis program will allow the user to create and then control a database. \n"; cout<<"what would you like to do? \n To enter a new record press n \nTo delete a record press d \nTo view a full list of the users with details press f \nTo view serch options press s\n to quit press q :- "; cin>>choice; while(count == 0) { choice = getchar (); switch(choice) { case 'n': { system("cls"); tdata.load(); tdata.enter(1); tdata.save(); count = 1; break; } case 'd': { //delete a record ?? count = 1; break; } case 'f': { system("cls"); tdata.list(); count = 1; break; }



LinkBack URL
About LinkBacks



