C语言多个函数调用问题
#include<stdio.h>voidbutler(void)intmain(void){butler();printf("Forhe'sajolllgoodfell...
#include <stdio.h>
void butler (void)
int main (void)
{
butler ();
printf("For he's a jolll good fellow!\n");
b ();
return 0;
}
void butler (void)
{
printf("For he's a jolll good fellow!\nFor he's a jolll good fellow!\n");
}
void butler (void)
{
printf("Which nobody can deny!\n");
}
题目是要
For he's a jolll good fellow!
For he's a jolll good fellow!
For he's a jolll good fellow!
Which nobody can deny!
求是除了main()函数之外,要使用两个用户自定义函数;一个用于把上面两个夸奖消息输出一次;另外一个用于把最后一行输出一次
希望哪位高手能指出我上面代码的错误之处,小弟感激不尽~~~ 展开
void butler (void)
int main (void)
{
butler ();
printf("For he's a jolll good fellow!\n");
b ();
return 0;
}
void butler (void)
{
printf("For he's a jolll good fellow!\nFor he's a jolll good fellow!\n");
}
void butler (void)
{
printf("Which nobody can deny!\n");
}
题目是要
For he's a jolll good fellow!
For he's a jolll good fellow!
For he's a jolll good fellow!
Which nobody can deny!
求是除了main()函数之外,要使用两个用户自定义函数;一个用于把上面两个夸奖消息输出一次;另外一个用于把最后一行输出一次
希望哪位高手能指出我上面代码的错误之处,小弟感激不尽~~~ 展开
1个回答
展开全部
#include <stdio.h>
void butler (void);
void b(void); /*一个是申明*/
int main (void)
{
butler ();
printf("For he's a jolll good fellow!\n");
b (); /*申明的这个函数是为了打最后一行的,内容见函数/*
return 0;
}
void butler (void)
{
printf("For he's a jolll good fellow!\nFor he's a jolll good fellow!\n");
}
void b(void) /*函数名 错了/*
{
printf("Which nobody can deny!\n");
}
void butler (void);
void b(void); /*一个是申明*/
int main (void)
{
butler ();
printf("For he's a jolll good fellow!\n");
b (); /*申明的这个函数是为了打最后一行的,内容见函数/*
return 0;
}
void butler (void)
{
printf("For he's a jolll good fellow!\nFor he's a jolll good fellow!\n");
}
void b(void) /*函数名 错了/*
{
printf("Which nobody can deny!\n");
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询