> #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".