c语言中不用while,for,do-while实现循环
来源:互联网 发布:c语言函数定义 编辑:程序博客网 时间:2024/04/29 16:50
如果不用循环结构实现一个循环体,怎么解?
先看代码
#include<stdio.h>int circle(int n){if(n>1000) return 1;else{printf("%d\t",n);circle(n+1);}}int main(){int n=1;circle(n);return 1;}
是不是有种被调戏的感觉?
递归是可解的,还有其他方法么?
- c语言中不用while,for,do-while实现循环
- Mohican_12/12 C语言—循环 for ,while,do while
- C语言中循环结构语句 for循环及while,do--while 的使用
- C语言之while循环语句和do while循环语句、for循环语句、循环嵌套
- 【黑马程序员】C语言循环之while循环、for循环、do...while循环
- 《IOS_C语言》while|循环,do...while循环,for循环
- 作业《IOS_C语言》while|循环,do...while循环,for循环
- while、do while、for循环
- 循环:for、while、do-while
- while循环、do..while 循环、for循环
- for循环,do....while循环,while循环
- for循环,while循环,do while循环
- 【学习ios之路:C语言】for ,while,do while循环的应用
- Object-C,循环语句for,while,do-while
- 【C++】For、While、do···while循环
- C语言(16)-----do-while循环使用
- 【C语言】C语言中for、while和do while 比较
- C#中foreach,for,while,Do-While循环
- 任务
- 修编字符串(stringEdit)
- Hibernate更新a different object with the same identifier value was already associated with the session
- Myeclipse10下载与破解
- SQL循环插入记录
- c语言中不用while,for,do-while实现循环
- iOS 6 Passbook 入门 1/2
- spring security
- html之间传递参数处理方法
- C++中的operator关键字
- 循环结构中“当型”与“直到型”判断的理解
- linux arm programming in assembly language
- hadoop杂记-为什么会有Map-reduce v2 (Yarn)
- myeclipse安装插件的方法