[note] Compare string

10:50 AM at 10:50 AM

//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"; } }

0 comments: