当前位置:网站首页>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;
}
边栏推荐
- Occasional pit compiled by idea
- Exercise 9-1 time conversion (15 points)
- Seven examples to understand the storage rules of shaped data on each bit
- Hands on deep learning (46) -- attention mechanism
- Rhsca day 11 operation
- How to teach yourself to learn programming
- Jianzhi offer 04 (implemented in C language)
- How can Huawei online match improve the success rate of player matching
- Sword finger offer 05 (implemented in C language)
- AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
猜你喜欢

Servlet基本原理与常见API方法的应用

Use the data to tell you where is the most difficult province for the college entrance examination!

Rhsca day 11 operation

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

From programmers to large-scale distributed architects, where are you (I)

今日睡眠质量记录78分

对于程序员来说,伤害力度最大的话。。。

leetcode1-3

Custom type: structure, enumeration, union

Delayed message center design
随机推荐
Reasons and solutions for the 8-hour difference in mongodb data date display
Container cloud notes
入职中国平安三周年的一些总结
Uniapp--- initial use of websocket (long link implementation)
Rhcsa operation
今日睡眠质量记录78分
Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)
BGP ---- border gateway routing protocol ----- basic experiment
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
RHCE - day one
Lavel document reading notes -how to use @auth and @guest directives in lavel
Rhcsa day 9
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
Number of relationship models
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
Differences among opencv versions
Exercise 8-10 output student grades (20 points)
OSPF summary
Architecture introduction
Devop basic command