Help

This is a discussion on Help within the C++ Programming forums, part of the General Programming Boards category; how do you prevent your command box from closing before i can read the results....

  1. #1
    Unregistered
    Guest

    Unhappy Help

    how do you prevent your command box from closing before i can read the results.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    Code:
    int main () 
    { 
    	
    	printf( "%s", "Press any key to continue" );
    	getchar( ); //stays here until a character is type
    
    	return 0; 
    
    }

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21