#include #includeusing namespace std;int main(){string str;cout<<"输入一串字符串:"<>str;int size=str.length();cout<<"您输入了"<<size<<"字符"<0||i==0;i--)cout<<str[i];cout<<endl;return 0;}