当前位置:网站首页>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;
}
边栏推荐
- Use C to extract all text in PDF files (support.Net core)
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- Legion is a network penetration tool
- Idea SSH channel configuration
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
- Batch distribution of SSH keys and batch execution of ansible
- 用数据告诉你高考最难的省份是哪里!
- Map container
- Pod management
- 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
猜你喜欢

OSPF comprehensive experiment

For programmers, if it hurts the most...

Rhcsa learning practice

leetcode1-3

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

DCL statement of MySQL Foundation

The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago

Basic data types of MySQL

leetcode1-3

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
随机推荐
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Rhcsa - day 13
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
Tables in the thesis of latex learning
RHCE - day one
BGP ---- border gateway routing protocol ----- basic experiment
Lavel document reading notes -how to use @auth and @guest directives in lavel
Basic data types of MySQL
Service developers publish services based on EDAs
转载:等比数列的求和公式,及其推导过程
Ruby时间格式转换strftime毫秒匹配格式
2021-08-10 character pointer
OSPF comprehensive experiment
Exercise 8-7 string sorting (20 points)
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
Devop basic command
Architecture introduction
Histogram equalization
什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
system design