Afficher un message
Vieux 30/06/2008, 05h58   #12
CD1
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: strcmp, please me understand this

> #include <string>
> #include <iostream>
>
> int main()
> {
> std::string foo("ABC");
> std::string f002("ABC");
>
> if(foo == foo2)
> std::cout << "match\n";
> else
> std::cout << "no match\n";
>
> return 0;
>
> }


This code won't compile. There is no variable called "foo2".


  Réponse avec citation
 
Page generated in 0,05146 seconds with 9 queries