| geekocoder (56) | |||||
|
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
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
but this is definitely not working for the reason mentioned above....plz help me out with this.... | |||||
|
Last edited on
|
|||||
| screw (145) | |||
|
Why don't you want to read the whole string first and process the encryption? It goes as follows:
But I suggest that you should use the c++ style string. | |||
|
|
|||
| geekocoder (56) | |
| i dont want to make the user see what he is entering....sumthing like when you type your password.....plz help me out | |
|
|
|
| Duoas (6333) | |
|
Or this: http://www.cplusplus.com/forum/general/47820/#msg259525 or _getch() ( #include <conio.h> ).Alas, Framework's post does what you want best... (I should read more carefully!). | |
|
Last edited on
|
|