Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / need help with comparing values

Author
Message
IHC KB3
6
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 14th Oct 2012 02:00
In the following code I have declared a char variable. The contents have been verified to contain what I want, but everytime I compare with an if staement, it returns false. I need a lesson please


TIA

Making a simple 3D walk through of a real place. Using DarkGDK, 2008 C++, 3DWS, Sparky's Collision
WLGfx
11
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th Oct 2012 14:58
You need to use strcmp() instead to compare strings in C which will return true or false. http://www.cplusplus.com/reference/clibrary/cstring/strcmp/

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!

Login to post a reply

Server time is: 2019-05-25 21:14:32
Your offset time is: 2019-05-25 21:14:32