int main() { string str("I think you will a c++ programmer"); string::iterator i=str.begin(); while(i!=str.end()||!isspace(*i)) { *i=toupper(*i); ++i; } while(1) { } return 0; }