早教吧 育儿知识 作业答案 考试题库 百科 知识分享

c++源代码把对象中的大写换成大写,#includestringsintmain(){strings("Expressionsinc++arecomposed……");\x05string::iteratorit=s.begin();\x05while(it=s.end();&&!isspace(*it))\x05{\x05\x05it=toupper(*it);\x05++it;\x05}std::cout

题目详情
c++源代码把对象中的大写换成大写,
#include
string s
int main ()
{
string s("Expressions in c++ are composed……");
\x05string::iterator it=s.begin();
\x05while (it =s.end();&&!isspace(*it))
\x05{
\x05\x05it=toupper(*it);
\x05++it;
\x05}std::cout
▼优质解答
答案和解析
编译提示不是说的很明白了嘛!少分号,根据提示自己找到对应的那行看下就知道了.
看了 c++源代码把对象中的大写换...的网友还看了以下: