//string can be compared directly, even it has "." or "@" symbols inside
#include
int main()
{
std::string a;
std::string b;
if ( a == b )
{
cout << "a is equal to b"; } }
[note] Compare string
10:50 AM at 10:50 AMThis entry was posted on 10:50 AM and is filed under Notes . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment