My OS is XP home. Ctrl+C returns me from the DOS screen to the IDE.
Yes I just want to print the names which are input not extra copies of the last one. Thanks for your interest.
Hi,
Yes, by pressing Ctrl+C may open the IDE. why means your application is not handling Ctrl+C signal, so it does default action.
there are 2 sol i can give.
1.Use signal handler while pressing ctrl+c and print what ever you need..
2.Every time in loop ask "do you want to continue or not? " if yes continue or break the loop.
-Arul