第2个回答 2017-04-06
#include<iostream>
using namespace std;
void main() { char str[256],*p,c; int n;
gets(str); p=str; n=0; while ( *p ) { p++; n++; } p--;
cout<<"\"";
while ( n ) { c=( *p>='a' && *p<='z' )?(*p-'a'+'A'):(*p); cout<<c; n--; p--; }
cout<<"\""<<endl;
}本回答被网友采纳