for example if i want to proceed until Ctrl+z is written for input.What will the compiler do?Does it accept Ctrl+Z as a normal string input , char* input, or a char input which has ASCII 26...
suppose i have a loop that does the following:
-first check the choice
-if not Ctlr+Z continue
-else go to the next stage.
"%
i only need when Ctrl+Z is performed using keyboard and it is gotten by select,it should exit the loop..
%"
i tried to do sth:
Expand|Select|Wrap|Line Numbers
- char select;
- string str;
- while(select != char(26)) //--char(26) is the ASCII equivalent of Ctrl+Z , i guess
- {
- cout <<" Enter a string";
- cin >>str;
- locate_asterisk(str);//--a function that adds '*' after each char in a cpp
- //--string
- cout <<"If you want to continue, press any character"
- <<"or to exit perform Ctrl+Z from keyboard"<<endl;
- }
i was trying this for more than 10 hours but i was really confused on what to do.
I will be very pleased if any helpful ideas are provided by you;
thanks for now
RADAR