Results 1 to 3 of 3

Thread: console exiting

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    console exiting

    you know that "Press any key to exit" thing that pops up when your ready to exit. how do i take that out and put my own i have.

    Code:
    	char cExit;
    
    	do //do whats in the brackets
    	{
    	  printf("To exit press Q\n");
    
    	  cExit = getch();
    	  cExit = toupper(cExit);
    
    	  if (cExit == 'Q')
    	  printf("Bye!\n\n");
    	}
    	  
    	while(cExit !='Q');//until the letter q or Q is pressed
    now all i need it to exit when that key is pressed. how can i do my own exit. with out any api or anything like that.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    you can't, not with something as simple as your looking for
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width