当前位置:网站首页>/*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;
}
边栏推荐
- 5g/4g wireless networking scheme for brand chain stores
- Exercise 7-4 find out the elements that are not common to two arrays (20 points)
- Pod management
- Linked list operation can never change without its roots
- Dynamic memory management
- Network disk installation
- Rhcsa12
- Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
- Exercise 9-3 plane vector addition (15 points)
- 【Day1】 deep-learning-basics
猜你喜欢

Application of safety monitoring in zhizhilu Denggan reservoir area

Use the data to tell you where is the most difficult province for the college entrance examination!

How can Huawei online match improve the success rate of player matching

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}

Online troubleshooting

Static comprehensive experiment ---hcip1

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1

Vs201 solution to failure to open source file HPP (or link library file)

RHCE - day one

Dynamic memory management
随机推荐
Check 15 developer tools of Alibaba
【OpenCV 例程200篇】218. 多行倾斜文字水印
Rhsca day 11 operation
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
For programmers, if it hurts the most...
Vanishing numbers
BGP advanced experiment
Work order management system OTRs
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
Exercise 7-3 store the numbers in the array in reverse order (20 points)
Ruby time format conversion strftime MS matching format
How can Huawei online match improve the success rate of player matching
Es advanced series - 1 JVM memory allocation
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Hands on deep learning (46) -- attention mechanism
对于程序员来说,伤害力度最大的话。。。
PHP代码审计3—系统重装漏洞
C language - stack
From programmers to large-scale distributed architects, where are you (I)