当前位置:网站首页>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;
}
边栏推荐
- Rhsca day 11 operation
- Basic data types of MySQL
- 六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
- 原生div具有编辑能力
- For programmers, if it hurts the most...
- Normal vector point cloud rotation
- 2021-08-10 character pointer
- [200 opencv routines] 218 Multi line italic text watermark
- Machine learning -- neural network (IV): BP neural network
- Dos:disk operating system, including core startup program and command program
猜你喜欢

Rhsca day 11 operation
![[200 opencv routines] 218 Multi line italic text watermark](/img/3e/537476405f02f0ebd6496067e81af1.png)
[200 opencv routines] 218 Multi line italic text watermark

Rhcsa12

【Day2】 convolutional-neural-networks

MPLS: multi protocol label switching

How can Huawei online match improve the success rate of player matching

The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}

What is an excellent architect in my heart?

DML statement of MySQL Foundation
随机推荐
leetcode729. My schedule 1
Rhsca day 11 operation
OSPF comprehensive experiment
Leetcode48. Rotate image
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
MongoDB数据日期显示相差8小时 原因和解决方案
MySQL case
Hands on deep learning (43) -- machine translation and its data construction
Ruby time format conversion strftime MS matching format
From programmers to large-scale distributed architects, where are you (I)
DDL statement of MySQL Foundation
【Day1】 deep-learning-basics
Tables in the thesis of latex learning
Exercise 7-8 converting strings to decimal integers (15 points)
【OpenCV 例程200篇】218. 多行倾斜文字水印
Jianzhi offer 04 (implemented in C language)
什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
Use C to extract all text in PDF files (support.Net core)
What is devsecops? Definitions, processes, frameworks and best practices for 2022
C language structure to realize simple address book