![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
c语言butler函数用法:butler函数中能打进去变量的吗,如:
/*一些语句*/voidbutler(void){intqwe=2;printf("Howmanypigdoyouhave?");printf("Ihave%dpigs"...
/*一些语句*/void butler (void) { int qwe=2; printf("How many pig do you have?"); printf("I have %dpigs",qwe); }
展开
1个回答
2014-02-23
展开全部
能
void butler(void)
{
int qwe;
printf("How many pig do you have?\n");
scanf("%d",&qwe);
printf("I have %d pigs\n",qwe);
}
void butler(void)
{
int qwe;
printf("How many pig do you have?\n");
scanf("%d",&qwe);
printf("I have %d pigs\n",qwe);
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询