当前位置:网站首页>Read a piece of text into the vector object, and each word is stored as an element in the vector. Convert each word in the vector object to uppercase letters. Output the converted elements in the vect
Read a piece of text into the vector object, and each word is stored as an element in the vector. Convert each word in the vector object to uppercase letters. Output the converted elements in the vect
2022-07-04 10:26:00 【qq_ fifty-eight million seven hundred and thirty-six thousand t】
int main(void)
{
string alphabet; string T_p; vector<string>count;
cout << " Input text Single input : end " << endl;
while (cin >> alphabet)
{
if (alphabet == ":")
break;
count.push_back(alphabet);
}
while (getchar()!= '\n')
continue;
for (vector<string>::size_type i = 0; i != count.size(); ++i)
{
for (vector<int>::size_type i1 = 0; i1 != count[i].size(); ++i1)
cout << (char)(toupper(count[i][i1]));
cout << " ";
if (i == 7)
cout << "\n";
}
return 0;
}
边栏推荐
- Dos:disk operating system, including core startup program and command program
- Hands on deep learning (39) -- gating cycle unit Gru
- Map container
- Rhcsa day 10 operation
- Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
- BGP ---- border gateway routing protocol ----- basic experiment
- MySQL case
- Exercise 7-4 find out the elements that are not common to two arrays (20 points)
- From programmers to large-scale distributed architects, where are you (I)
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
猜你喜欢
Architecture introduction
Rhcsa day 9
Number of relationship models
For programmers, if it hurts the most...
Latex learning insertion number - list of filled dots, bars, numbers
2. Data type
leetcode842. Split the array into Fibonacci sequences
BGP advanced experiment
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
Idea SSH channel configuration
随机推荐
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
MongoDB数据日期显示相差8小时 原因和解决方案
Lavel document reading notes -how to use @auth and @guest directives in lavel
如果不知道這4種緩存模式,敢說懂緩存嗎?
【Day2】 convolutional-neural-networks
Normal vector point cloud rotation
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
C language - stack
DML statement of MySQL Foundation
Advanced technology management - how to design and follow up the performance of students at different levels
Basic principle of servlet and application of common API methods
Sword finger offer 05 (implemented in C language)
RHCE day 3
If you don't know these four caching modes, dare you say you understand caching?
BGP ---- border gateway routing protocol ----- basic experiment
原生div具有编辑能力
入职中国平安三周年的一些总结
Machine learning -- neural network (IV): BP neural network
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Seven examples to understand the storage rules of shaped data on each bit