当前位置:网站首页>/*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;
}
边栏推荐
- The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
- Doris / Clickhouse / Hudi, a phased summary in June
- Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
- Exercise 8-10 output student grades (20 points)
- Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
- 用数据告诉你高考最难的省份是哪里!
- RHCE - day one
- DCL statement of MySQL Foundation
- Rhcsa operation
- Kotlin set operation summary
猜你喜欢
【OpenCV 例程200篇】218. 多行倾斜文字水印
C language structure to realize simple address book
Latex learning insertion number - list of filled dots, bars, numbers
IPv6 comprehensive experiment
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
BGP advanced experiment
The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
If you don't know these four caching modes, dare you say you understand caching?
用数据告诉你高考最难的省份是哪里!
Introduction to extensible system architecture
随机推荐
对于程序员来说,伤害力度最大的话。。。
Introduction to tree and binary tree
如果不知道這4種緩存模式,敢說懂緩存嗎?
MySQL develops small mall management system
VLAN part of switching technology
RHCE day 3
Kotlin set operation summary
MongoDB数据日期显示相差8小时 原因和解决方案
Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
Latex arranges single column table pictures in double column format articles
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
MySQL case
Deep learning 500 questions
Work order management system OTRs
leetcode1-3
5g/4g wireless networking scheme for brand chain stores
Latex learning insertion number - list of filled dots, bars, numbers
Whether a person is reliable or not, closed loop is very important
Dynamic memory management
How to teach yourself to learn programming