当前位置:网站首页>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;
}
边栏推荐
- Devop basic command
- Rhcsa operation
- Seven examples to understand the storage rules of shaped data on each bit
- When I forget how to write SQL, I
- If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
- OSPF summary
- 【OpenCV 例程200篇】218. 多行倾斜文字水印
- Number of relationship models
- leetcode1-3
- Intelligent gateway helps improve industrial data acquisition and utilization
猜你喜欢
system design
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Normal vector point cloud rotation
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
【OpenCV 例程200篇】218. 多行倾斜文字水印
今日睡眠质量记录78分
Some summaries of the third anniversary of joining Ping An in China
Tables in the thesis of latex learning
随机推荐
How can Huawei online match improve the success rate of player matching
【Day2】 convolutional-neural-networks
Three schemes of ZK double machine room
Sword finger offer 05 (implemented in C language)
Rhcsa learning practice
Number of relationship models
leetcode1-3
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
MongoDB数据日期显示相差8小时 原因和解决方案
OSPF summary
Use C to extract all text in PDF files (support.Net core)
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
Rhcsa operation
Latex arranges single column table pictures in double column format articles
PHP code audit 3 - system reload vulnerability
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Exercise 8-7 string sorting (20 points)
Service developers publish services based on EDAs
Hands on deep learning (45) -- bundle search
Whether a person is reliable or not, closed loop is very important