sleep(seconds);
Or if you're looking for something shorter
usleep() or nanosleep().
If its a complete halt, then do a:
cin >> temp;
It will wait till the user presses <enter>
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
----- 01000111 01101111 00100000 01000011 00100000 00100001