Use getch() in a loop... It will not echo to the screen.. If you use getche() it will...
if you want to accept chars till enter is pressed without displaying on the screen...
# include <iostream.h>
so now the array will hold all the chars... There is a better way of doing this... For example now if you press back space, del etc it will also be taken as a char and stored in the array... You need more conditional statement to make this work perfect...