网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  说反话 (20)

说反话 (20)

分类: IT文章 • 2025-02-03 20:56:19
 1 #include <iostream>
 2 #include <algorithm>
 3 #include <string>
 4 #include <stack>
 5 #include <sstream>
 6 using namespace std;
 7 
 8 int main(){
 9 
10     string Word;
11     char ch[100];
12     gets(ch);
13     stringstream ss(ch);
14     stack<string> st;
15     while (ss >> Word)
16         st.push(Word);
17 
18     cout << st.top();
19     st.pop();
20     while (st.size()){
21         cout << " " << st.top();
22         st.pop();
23     }
24 
25     return 0;
26 }

相关推荐

  • 爬虫20-浏览器自动运行简单方法
  • Machine Learning 20 项目实践 (预测模型项目模板)
  • LeetCode 20 Valid Parentheses
  • 20、最长公共前缀
  • 1035 Password (20 分)(字符串)
  • 转 Jona Dany 一个20年架构师程序员的经验总结
  • mybatis自学历程(一) 第一个mybatis程序 全局配置文件简说(mybatis-config.xml) 3种查询方式 查询全部 在Mapper.xml中获取参数 mybatis中实现mysql简单分页  typeAliases别名  mybatis实现新增和事务讲解 分页 转账,日志及分页案例
  • 面向对象之定制对象独有属性+属性查找+绑定方法day20
  • 从「图片上传」说「内存泄漏」
  • 【CSS古话今说】-- 01.神奇的CSS-BFC在实战中的应用
  • GAN网络原理介绍和代码
  • 前后台传时间值的问题
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号