c++strcmp函数

在头文件cstring中
strcmp函数是string compare(字符串比较)的缩写,用于比较两个字符串并根据比较结果返回整数。基本形式为strcmp(str1,str2),若str1=str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数

猜你喜欢

转载自blog.csdn.net/J_avaSmallWhite/article/details/109253055
今日推荐