程序是有问题的,帮你修改了下,顺便去掉了多余的变量#include <iostream>#include <string>using namespace std;int main() { string c;cin >>c;for (int n = c.length() - 1;n >= 0;n--) if (c[n] >= 65 展开
程序是有问题的,帮你修改了下,顺便去掉了多余的变量#include <iostream>#include <string>using namespace std;int main() { string c;cin >>c;for (int n = c.length() - 1;n >= 0;n--) if (c[n] >= 65 && c[n] <= 90) c[n] += 32;cout <<c <<endl;return 0;}vista下一般是不能用6.0的,不过也听说有人能正常使用的 收起