当前位置:网站首页>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;
}
边栏推荐
- AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
- Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
- Four characteristics and isolation levels of database transactions
- Reprint: summation formula of proportional series and its derivation process
- MySQL case
- leetcode1-3
- How can Huawei online match improve the success rate of player matching
- IPv6 comprehensive experiment
- Rhcsa learning practice
- What is an excellent architect in my heart?
猜你喜欢

Rhcsa day 10 operation

Online troubleshooting

Architecture introduction

IPv6 comprehensive experiment

Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2

Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)

Idea SSH channel configuration

Hands on deep learning (46) -- attention mechanism

Hands on deep learning (45) -- bundle search

Basic principle of servlet and application of common API methods
随机推荐
IPv6 comprehensive experiment
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
Rhcsa learning practice
A little feeling
Differences among opencv versions
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
Normal vector point cloud rotation
Work order management system OTRs
Online troubleshooting
From programmers to large-scale distributed architects, where are you (2)
DML statement of MySQL Foundation
RHCE - day one
Es advanced series - 1 JVM memory allocation
MySQL case
Rhsca day 11 operation
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
VLAN part of switching technology
For programmers, if it hurts the most...