这道题目要求输入一个以!结尾的字符串,然后逆序输出,我的代码好像没什么问题,谁知道为什么RE了?
#include
#include
using namespace std;
int main(){
char a[50];
int b;
cin>>a;
int k=0;
k=strlen(a)-1;
b=1;
for(;k>=0;k--){
if(b==1){b=0;continue;}
cout<
}
cout<
return 0;
}
那感叹号到底要不要输出呢???