一个C语言问题#includevoid zhu(){printf("---------------------------------------------------------\n");printf("test 1:1\n");printf("test 1:2\n");int a;scanf("%d",&a);if(a==1){goto te1;}else if{goto te2;}}te1:void teone(){printf("this is test one

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/18 00:35:06
一个C语言问题#includevoid zhu(){printf(

一个C语言问题#includevoid zhu(){printf("---------------------------------------------------------\n");printf("test 1:1\n");printf("test 1:2\n");int a;scanf("%d",&a);if(a==1){goto te1;}else if{goto te2;}}te1:void teone(){printf("this is test one
一个C语言问题
#include
void zhu()
{
printf("---------------------------------------------------------\n");
printf("test 1:1\n");printf("test 1:2\n");
int a;
scanf("%d",&a);
if(a==1)
{
goto te1;
}
else if
{
goto te2;
}
}
te1:
void teone()
{
printf("this is test one");
}
te2:
void tetwo()
{
printf("this is test one");
}

一个C语言问题#includevoid zhu(){printf("---------------------------------------------------------\n");printf("test 1:1\n");printf("test 1:2\n");int a;scanf("%d",&a);if(a==1){goto te1;}else if{goto te2;}}te1:void teone(){printf("this is test one
你想问什么问题啊?
另外,你写的这个程序什么结果也不会出来.te1和te2区间的代码只是定义声明了一个函数,并不会调用.