学习使用cmp函数#include <iostream>#include<string.h>using namespace std;int main() { char s[1000];char c[1000]; cin>>c; cin>>s; if(strcmp(c,s)==0) cout<<"same"<<endl;else cout<<"different";}