当前位置:网站首页>/*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;
}
边栏推荐
- Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
- How to teach yourself to learn programming
- MPLS: multi protocol label switching
- leetcode729. My schedule 1
- 2. Data type
- System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
- Dynamic memory management
- Online troubleshooting
- Exercise 8-7 string sorting (20 points)
- Knapsack problem and 0-1 knapsack problem
猜你喜欢
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
C language structure to realize simple address book
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
Dynamic address book
When I forget how to write SQL, I
RHCE - day one
Collection of practical string functions
How can Huawei online match improve the success rate of player matching
Number of relationship models
随机推荐
BGP ---- border gateway routing protocol ----- basic experiment
How to teach yourself to learn programming
Devop basic command
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
Knapsack problem and 0-1 knapsack problem
IPv6 comprehensive experiment
Vs201 solution to failure to open source file HPP (or link library file)
Uniapp--- initial use of websocket (long link implementation)
入职中国平安三周年的一些总结
Kotlin: collection use
Reasons and solutions for the 8-hour difference in mongodb data date display
View CSDN personal resource download details
Kotlin set operation summary
【OpenCV 例程200篇】218. 多行倾斜文字水印
使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
Collection of practical string functions
Occasional pit compiled by idea
Seven examples to understand the storage rules of shaped data on each bit
Introduction to extensible system architecture
Rhcsa - day 13