当前位置:网站首页>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;
}
边栏推荐
- Rhcsa operation
- Jianzhi offer 04 (implemented in C language)
- Kotlin: collection use
- Check 15 developer tools of Alibaba
- Velodyne configuration command
- Dynamic address book
- Exercise 9-3 plane vector addition (15 points)
- Hands on deep learning (39) -- gating cycle unit Gru
- 【Day2】 convolutional-neural-networks
- How to teach yourself to learn programming
猜你喜欢
Devop basic command
Rhcsa12
PHP code audit 3 - system reload vulnerability
今日睡眠质量记录78分
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
Reasons and solutions for the 8-hour difference in mongodb data date display
IPv6 comprehensive experiment
C language structure to realize simple address book
Dynamic memory management
【Day1】 deep-learning-basics
随机推荐
【OpenCV 例程200篇】218. 多行倾斜文字水印
Es entry series - 6 document relevance and sorting
When I forget how to write SQL, I
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
2. Data type
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
Whether a person is reliable or not, closed loop is very important
Doris / Clickhouse / Hudi, a phased summary in June
Some summaries of the third anniversary of joining Ping An in China
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
Check 15 developer tools of Alibaba
Two way process republication + routing policy
今日睡眠质量记录78分
If you don't know these four caching modes, dare you say you understand caching?
Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)
Custom type: structure, enumeration, union
Exercise 7-3 store the numbers in the array in reverse order (20 points)
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
OSPF comprehensive experiment