CString Temp;
if (Temp == "")
{
//空
}
if (Temp.IsEmpty())
{
//空
}
if (Temp.GetLength() == 0)
{
//空
}怎么判断CString的类型是否为空
最新推荐文章于 2021-03-06 14:20:30 发布
本文介绍了在C++中使用CString类判断字符串是否为空的三种方法:直接比较、IsEmpty()函数及GetLength()函数。
2万+

被折叠的 条评论
为什么被折叠?



