題目:編寫程序,實現strcmp()相同功能myStrcmp()函數

題目:編寫程序,實現strcmp()相同功能myStrcmp()函數 strcmp函數  其一般形式爲:strcmp(字符串1,字符串2)  strcmp的作用是比較字符串1和字符串2。 例如:strcmp(str1,str2);       strcmp(″China″,″Korea″);       strcmp(str1,″Beijing″); 比較的結果由函數值帶回 (1) 如果字符串1=
相關文章
相關標籤/搜索