string s = "";if (s.empty())
{
cout <<
"字符串为空。。";
}
else
{
cout << "字符串不为空。。";
}
c++中函数empty()怎么使用
最新推荐文章于 2024-06-01 19:18:26 发布
string s = "";if (s.empty())
{
cout <<
"字符串为空。。";
}
else
{
cout << "字符串不为空。。";
}