//字符串比较
if(strcmp(str,"hello str") == 0)
{
//字符串相同
}
else
{
//字符串不同
}
C++字符串比较strcmp-随心
最新推荐文章于 2025-06-29 21:39:34 发布

//字符串比较
if(strcmp(str,"hello str") == 0)
{
//字符串相同
}
else
{
//字符串不同
}