3.14
来源:互联网 发布:mac preview 合并pdf 编辑:程序博客网 时间:2024/05/07 13:34
# include<iostream>
# include<vector>
# include<string>
# include<cctype>
using namespace std;
int main()
{
vector<string> svec;
string str;
cout<<"Enter strings (Crtl+Z to end):"<<endl;
while (cin>>str)
svec.push_back(str);
if (svec.size()==0)
{
cout<<"No string?!"<<endl;
system("pause");
return -1;
}
cout<<"Transformed strings from the vector:"<<endl;
for (vector<string>::size_type ix=0;ix!=svec.size();++ix)
{
for(vector<string>::size_type index=0;index!=svec[ix].size();++index)
if (islower(svec[ix][index]))
svec[ix][index]=toupper(svec[ix][index]);
cout<<svec[ix]<<" ";
if((ix+1)%8==0)
cout<<endl;
}
system("pause");
return 0;
}
# include<vector>
# include<string>
# include<cctype>
using namespace std;
int main()
{
vector<string> svec;
string str;
cout<<"Enter strings (Crtl+Z to end):"<<endl;
while (cin>>str)
svec.push_back(str);
if (svec.size()==0)
{
cout<<"No string?!"<<endl;
system("pause");
return -1;
}
cout<<"Transformed strings from the vector:"<<endl;
for (vector<string>::size_type ix=0;ix!=svec.size();++ix)
{
for(vector<string>::size_type index=0;index!=svec[ix].size();++index)
if (islower(svec[ix][index]))
svec[ix][index]=toupper(svec[ix][index]);
cout<<svec[ix]<<" ";
if((ix+1)%8==0)
cout<<endl;
}
system("pause");
return 0;
}
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 3.14
- 【3.14】
- 3.14-3.17
- PHP---3.14
- 3.14笔记
- 3.14会
- 黄迪明3.14
- 弧度正常写法 0.125*3.14 0.25*3.14 0.5*3.14 1.0*3.14 1.5*3.14 2.0*3.14
- 实习日志(3.14)
- Java socket经典示例
- SDP协议学习笔记
- qtopia4安装
- UML简介
- LCC编译器的源程序分析(57)不同目标代码生成的接口结构
- 3.14
- 原来C#和ASP.NET也不是很难哦
- 异步webservice调用
- Java语言中包的简单使用
- 滚动代码
- 你知道這美女現在有幾個人在看嗎~
- JDBC的批量处理语句
- Sock代理安装使用
- 好听的音乐---飛魚樂園音樂專輯(Orchid Island)