CF>> Hi all...
CF>>
CF>> I have a problem here. I use Linux as my main OS, and therefor do all my
c+
CF>> codeing in Linux too. I'm now using "Instant C++ Programming" by Ian
Wilks
CF>> learn c++, and in a program made after reading from that book, I shall
use
CF>> strcmpi().
CF>>
CF>> The source code look like this:
CF>> if (strcmpi(input, yes) == 0)
CF>> cout << response1;
CF>> else
CF>> if (strcmpi(input, no) == 0)
CF>> cout << response2;
> I changed both instances of strcmpi with strcmp and it compiled just
>fine..
But strcmpi and strcmp isn't the same thing!
strcmp is case sensitive, strcmpi is NOT!
__ __ __ __ _ _
/_ // / // ///\// email: scooby@applausenett.no
_ _ __ __//_ /_//_//_/// homepage: http://www.applausenett.no/~scooby/
--- BBBS/L v3.33 How
---------------
* Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30)
|