Re: [Dev-C++] I am new to C ++ and need some help
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Vesa N. <wa...@dl...> - 2000-12-10 22:34:14
|
Hi,
In C you can't compare strings with:
name == "blahblah" since the value of a string is the memory location
where it is.
The correct method is to use the standard C function strcmpi (string
compare, case insensitive)
if (strcmpi(name,"john")==0)
{
name is john
}
|