i am trying to make a program to encrypt a character string.for this i require the compiler to read a single character at a time,process it and go on for the next character and so on untill the user press the enter key...but i am not able to read a single character at a time and process it...
FOR eg:
if i declare something like what is given below
1 2
char h;
cin>>h;
thought the compiler will store only one character but the user is allowed to enter as many characters as he wants...this is what i dont want..following is my strategy