From: Philip B. <phi...@pb...> - 2008-03-28 23:32:44
|
Yes, it is definitely case sensitive. If you have a lot of options to check and a single variable that contains the current one, you could always use the function tolower which will make life a bit easier for you in that case. You just convert it to a lowercase before you start checking and then you don't need to bother about it. Regards Philip Bennefall ----- Original Message ----- From: Deepesh Kapadia To: dev...@li... Sent: Saturday, March 29, 2008 12:20 AM Subject: [Dev-C++] Char datatype hello all, i would like to know if the CHAR datatype is case-sensitive?? i.e. should i write code like this to recognise the character or not e.g. char = category; if (category == 'M') or (category == 'm') cheers.. -- ---Deepesh Kapadia--- ------------------------------------------------------------------------------ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ------------------------------------------------------------------------------ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |