Code:if( (strcmp(name,"q")==0) || (strcmp(name,"Q")==0) )return 0;
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
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
Just use strcmpi(), it's case insensitive...so 'Q' and 'q' would both work.Originally Posted by The Brain