Thread: Q to quit help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    Code:
    if( (strcmp(name,"q")==0) || (strcmp(name,"Q")==0) )return 0;
    Last edited by The Brain; 04-12-2005 at 10:33 AM.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    39
    Thanx The Brain For The suggestion. I actually shoved that in just before reading your post

    Anyways..U can have some green as well..for being a good person! (And also making me sure that the code is sweet!)

    Cheers
    Alex

  3. #3
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Quote Originally Posted by The Brain
    Code:
    if( (strcmp(name,"q")==0) || (strcmp(name,"Q")==0) )return 0;
    Just use strcmpi(), it's case insensitive...so 'Q' and 'q' would both work.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. processes not exiting or quit
    By kryptkat in forum Tech Board
    Replies: 8
    Last Post: 11-13-2006, 12:43 PM
  3. I quit!
    By Luigi in forum C++ Programming
    Replies: 8
    Last Post: 12-03-2002, 09:30 AM
  4. implicit declatation of function 'int toupper(...)'
    By Intimd8r in forum C Programming
    Replies: 3
    Last Post: 10-01-2001, 02:43 PM