// 0934.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <string> #include <iostream> #include <cctype> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string strVal = "Hello Everyone"; for (string::iterator iter = strVal.begin();iter!=strVal.end();iter++) *iter = toupper(*iter); for (string::iterator iter = strVal.begin();iter!=strVal.end();iter++) cout << *iter; return 0; }