当前位置:网站首页>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;
}
边栏推荐
- Intelligent gateway helps improve industrial data acquisition and utilization
- Hlk-w801wifi connection
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- DML statement of MySQL Foundation
- leetcode729. My schedule 1
- Velodyne configuration command
- Hands on deep learning (43) -- machine translation and its data construction
- Development guidance document of CMDB
- A little feeling
- Hands on deep learning (39) -- gating cycle unit Gru
猜你喜欢

uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
如果不知道這4種緩存模式,敢說懂緩存嗎?

Latex learning insertion number - list of filled dots, bars, numbers

Histogram equalization

DDL statement of MySQL Foundation

【Day1】 deep-learning-basics

Hands on deep learning (39) -- gating cycle unit Gru

leetcode1-3

【Day2】 convolutional-neural-networks

Three schemes of ZK double machine room
随机推荐
Kotlin: collection use
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Latex insert picture, insert formula
按键精灵跑商学习-商品数量、价格提醒、判断背包
DML statement of MySQL Foundation
leetcode729. My schedule 1
Uniapp--- initial use of websocket (long link implementation)
Three schemes of ZK double machine room
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
View CSDN personal resource download details
5g/4g wireless networking scheme for brand chain stores
[200 opencv routines] 218 Multi line italic text watermark
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
MySQL case
Use C to extract all text in PDF files (support.Net core)
Ruby time format conversion strftime MS matching format
Dynamic memory management
Devop basic command
Basic data types of MySQL
Dynamic memory management