strcmp();字符串比較函數(shù)怎么用,麻煩舉個(gè)例子
2 回答

萬千封印
TA貢獻(xiàn)1891條經(jīng)驗(yàn) 獲得超3個(gè)贊
函數(shù)簡介原型:extern int strcmp(const char *s1,const char * s2)
功能:比較字符串s1和s2。
一般形式:strcmp(字符串1,字符串2)
- 2 回答
- 0 關(guān)注
- 791 瀏覽
添加回答
舉報(bào)
0/150
提交
取消