string s = "";if (s.empty())
{
    cout << 
"字符串为空。。";
}
else
{
    cout << "字符串不为空。。";
}