c++源代码把对象中的大写换成大写,大神进~~

[复制链接]
查看11 | 回复2 | 2012-1-31 09:54:57 | 显示全部楼层 |阅读模式
#include string s //少;int main (){
string s("Expressions in c++ are composed……");string::iterator it=s.begin();while (it !=s.end();&&!isspace(*it)) //s.end();后面多了;{it=toupper(*it);++it;}std::cout<string s!!!!!!!!!!!!!!!!!!!! 此处却了';' 符号int main (){
string s("Expressions in c++ are composed……");string::iterator it=s.begin();while (it !=s....
回复

使用道具 举报

千问 | 2012-1-31 09:54:57 | 显示全部楼层
编译提示不是说的很明白了嘛!少分号,根据提示自己找到对应的那行看下就知道了。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行