#includeusingnamespacestd;charstrend(char*s,char*t);intmain(){char*s;char*t;s=newchar[100];t=newchar[100];cout<<"è¾å
¥sçå¼"<<endl;cin.getline(s,100);cout<<"è¾å
¥tçå¼"<<endl;cin.getline(t,100);cout<<strend(s,t)<<endl;return0;}charstrend(char*s,char*t){intsize1=0,size2=0;if(s!=NULL)while(s[size1]!='\0')size1++;returnNULL;if(s[size1-1]==*t)return'1';elsereturn'0';}åªè¦æåä¸ä¸ªå符ç¸å,å°±ä¼è¾åº1,å¦åè¾å
¥0.
温馨提示:答案为网友推荐,仅供参考