递归思想,实现字符串反转
2016-03-05 11:48
253 查看
#include<iostream>
using namespace std;
int main()
{
int print();
print();
return 0;
}
int print()
{
char a;
// scanf("%c",&a);
cin>>a;
if(a!='#') print();
if(a!='#') cout<<a;
}
using namespace std;
int main()
{
int print();
print();
return 0;
}
int print()
{
char a;
// scanf("%c",&a);
cin>>a;
if(a!='#') print();
if(a!='#') cout<<a;
}
相关文章推荐
- 字典序最小问题
- eclipse安装java web开发环境
- 图像叠加及透明度的调整在matlab下实现
- IIS 多站点HTTPS加密及自动http跳转到https
- [Programming WCF Services]Chapter 1. WCF Essentials - EndPoint
- 我与小娜(26):冷酷机器与情感人类对弈,你站在哪一边?
- rebmuNnmuloCteehSlecxE.171
- 手把手教你编写一个具有基本功能的shell(已开源)
- sed字符串替换
- ubuntu 打开系统监视器
- 2016.03.05
- mysql读写分离之amoeba
- input子系统分析
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- c语言概述
- 第三方库文件ViewPagerIndicator实现由Eclipse到Android Studio的完美迁移——项目迁移一
- Eclipse使用入门教程
- JSP的内置对象
- 软件质量保证与测试(练习)
- android 开发 system/app目录下面有多个重复包名的apk,会不会冲突