I have my program done but I am trying to clean up for user fat fingering! I have a char defined. but when the cin from command line happens I want the program to only read 1 charachter since the rest of the charachters spoil my other cins. Any suggestions ? Here is an example of what I am doing:
int main()
(
char response;
string filename;
//I only want it to read a Y or N or any other single //characther
cout<<"Enter Response:";
cin>>response;
cout<<Enter filename;
cin>>filename;
}
This project never seem to be over, I have everything done except these little house cleaning before using issues!! PLease help...I need to finally get some sleep
MuthuIVS
int main()
(
char response;
string filename;
//I only want it to read a Y or N or any other single //characther
cout<<"Enter Response:";
cin>>response;
cout<<Enter filename;
cin>>filename;
}
This project never seem to be over, I have everything done except these little house cleaning before using issues!! PLease help...I need to finally get some sleep
MuthuIVS