当前位置:网站首页>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;
}
边栏推荐
- Exercise 9-1 time conversion (15 points)
- Basic data types of MySQL
- DDL statement of MySQL Foundation
- Map container
- leetcode842. Split the array into Fibonacci sequences
- 2021-08-10 character pointer
- Latex arranges single column table pictures in double column format articles
- Servlet基本原理与常见API方法的应用
- From programmers to large-scale distributed architects, where are you (2)
- Hands on deep learning (39) -- gating cycle unit Gru
猜你喜欢

Number of relationship models

Two way process republication + routing policy

Rhcsa - day 13

Evolution from monomer architecture to microservice architecture

Online troubleshooting

Dynamic address book

BGP ---- border gateway routing protocol ----- basic experiment

For programmers, if it hurts the most...

Remove linked list elements

Basic data types of MySQL
随机推荐
C language structure to realize simple address book
Hands on deep learning (45) -- bundle search
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Dynamic memory management
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
Velodyne configuration command
今日睡眠质量记录78分
Hands on deep learning (39) -- gating cycle unit Gru
Seven examples to understand the storage rules of shaped data on each bit
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
leetcode1229. Schedule the meeting
Exercise 9-4 finding books (20 points)
Rhcsa learning practice
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
DDL statement of MySQL Foundation
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
Vs201 solution to failure to open source file HPP (or link library file)
BGP advanced experiment
leetcode1-3