当前位置:网站首页>/*Write a loop to output the elements of the list container in reverse order*/
/*Write a loop to output the elements of the list container in reverse order*/
2022-07-04 10:26:00 【qq_ fifty-eight million seven hundred and thirty-six thousand t】
#include<list>
#include<iostream>
int main(void)
{
std::list<string> strs; string str;
while (cin >> str)
strs.push_back(str);
for (std::list<string>::iterator it = strs.end(); it != strs.begin(); )
cout << *--it;
return 0;
}
边栏推荐
- 六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
- Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
- 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
- Seven examples to understand the storage rules of shaped data on each bit
- Doris / Clickhouse / Hudi, a phased summary in June
- Devop basic command
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- Today's sleep quality record 78 points
- Rhsca day 11 operation
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
猜你喜欢

RHCE - day one

VLAN part of switching technology

今日睡眠质量记录78分
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?

BGP ---- border gateway routing protocol ----- basic experiment

When I forget how to write SQL, I

Reprint: summation formula of proportional series and its derivation process
![[FAQ] summary of common causes and solutions of Huawei account service error 907135701](/img/73/c4ee842475f05e2e67297fcac68779.png)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701

Application of safety monitoring in zhizhilu Denggan reservoir area

MySQL develops small mall management system
随机推荐
Dynamic memory management
AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
Rhcsa operation
Summary of several job scheduling problems
Exercise 7-8 converting strings to decimal integers (15 points)
uniapp---初步使用websocket(长链接实现)
BGP ---- border gateway routing protocol ----- basic experiment
MPLS: multi protocol label switching
Latex arranges single column table pictures in double column format articles
Custom type: structure, enumeration, union
A little feeling
Container cloud notes
Rhcsa learning practice
Talk about scalability
Time complexity and space complexity
【Day1】 deep-learning-basics
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
Whether a person is reliable or not, closed loop is very important
leetcode1-3
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前