原始GOTO
来源:互联网 发布:织梦dedecs 城市分站 编辑:程序博客网 时间:2024/05/17 01:24
#include <stdlib.h>
#include <stdio.h>
void test (int n)
{
label:
printf(" %d ",n);
n=n+1;
goto label; //test(n)
}
void main()
{
test (0);
}
来源:互联网 发布:织梦dedecs 城市分站 编辑:程序博客网 时间:2024/05/17 01:24
#include <stdlib.h>
#include <stdio.h>
void test (int n)
{
label:
printf(" %d ",n);
n=n+1;
goto label; //test(n)
}
void main()
{
test (0);
}