//#include "stdafx.h"//vc++6.0加上这一行.#include using namespace std;int main(void){ char str[200]; cout << "Enter a string...\nstr="; cin >> str; for(int i=0;str[i];i++) if(str[i]>='A' && str[i]<='Z') str[i]|=0x20; cout << str << endl; return 0;}