当前位置:网站首页>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;
}
边栏推荐
- RHCE - day one
- MySQL case
- MongoDB数据日期显示相差8小时 原因和解决方案
- 2020-03-28
- Latex arranges single column table pictures in double column format articles
- Servlet基本原理与常见API方法的应用
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
- For programmers, if it hurts the most...
- Tables in the thesis of latex learning
猜你喜欢

【Day2】 convolutional-neural-networks

Remove linked list elements

Hands on deep learning (46) -- attention mechanism

DCL statement of MySQL Foundation

RHCE - day one

Architecture introduction

Sword finger offer 05 (implemented in C language)
If you don't know these four caching modes, dare you say you understand caching?

转载:等比数列的求和公式,及其推导过程

对于程序员来说,伤害力度最大的话。。。
随机推荐
使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
Two way process republication + routing policy
From programmers to large-scale distributed architects, where are you (2)
Three schemes of ZK double machine room
Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
BGP ---- border gateway routing protocol ----- basic experiment
今日睡眠质量记录78分
Evolution from monomer architecture to microservice architecture
Sword finger offer 05 (implemented in C language)
Kotlin set operation summary
Exercise 8-7 string sorting (20 points)
DML statement of MySQL Foundation
If you don't know these four caching modes, dare you say you understand caching?
Rhcsa12
Architecture introduction
Rhcsa day 10 operation
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
【Day2】 convolutional-neural-networks
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC