求解答,电脑是如何执行这个函数的
c语言吧
全部回复
仅看楼主
level 1
hhjjnn330 楼主
#include <stdio.h>
void one_three(void);
void two(void);
int main(void)
{
     printf("starting now:\n");
     one_three();
     printf("done!\n");
     getchar();return 0;
}
void one_three(void)
{
       printf("one\n");
       two();    
       printf("three\n");
       main();
}
void two(void)
{
      printf("two\n");
}
plus 后面的一个词习题,我在one_three 里面调了main函数,请问电脑是按照什么顺序运行它的?(黑框里白字闪的太快了实在是看不清)
2011年02月13日 11点02分 1
level 8
加个sysytem("pause")?
2011年02月13日 11点02分 2
level 7
一个一个调用进去的,不过切忌不要用子程序调用主程序
2011年02月13日 11点02分 4
level 1
hhjjnn330 楼主
回复:4楼
我明白了...是先运行main,然后运行到one_three时再从头运行main,然后又到了0ne_three....
谢楼上解答
2011年02月13日 12点02分 5
1