you should look into the tutorial files in here....there are tons of info....

and the system calls does somethig like you where in a command promp ad typed that....

and that's what it does...to freeze...
you can use getch() or getche() thery are in stdio.h .....the act like cin ..but captures only one key stroke....