c 语言小白求教大神 无法运行

ylxd41 2016-04-06 04:53:06
#include<stdio.h>
int main (void)
function1(void)
function2(void)
{
printf("for he is a jolly good fellow!\n,for he is a jolly good fellow!\n");
function1;
function2;
return 0;
}
function1(void)
{
printf("for he is a jolly good fellow!\n");
}
function2(void)
{
printf("which nobody can deny!\n");
}
...全文
137 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
小灸舞 版主 2016-04-07
  • 打赏
  • 举报
回复
函数声明末尾要加分号
调用函数的时候要有括号
函数的实现要用大括号括起来
苏叔叔 2016-04-07
  • 打赏
  • 举报
回复
关注c语言基础
weixin_33895621 2016-04-07
  • 打赏
  • 举报
回复
你函数定义有问题,应该把类型写在前面,声明带分号。 。
旧剑鞘 2016-04-06
  • 打赏
  • 举报
回复
#include<stdio.h> void function1(void); void function2(void); int main (void) { printf("for he is a jolly good fellow!\n,for he is a jolly good fellow!\n"); function1(); function2(); return 0; } void function1(void) { printf("for he is a jolly good fellow!\n"); } void function2(void) { printf("which nobody can deny!\n"); } 从哪里学的语法~~ 实践前也得学习才有效果~~
cocoabird 2016-04-06
  • 打赏
  • 举报
回复
#include "StdAfx.h"
#include"stdio.h"
#include"string.h"
#include<stdio.h>
function1(void);
function2(void);
int main (void)
{
printf("for he is a jolly good fellow!\n,for he is a jolly good fellow!\n");
function1();
function2();
return 0;
}
function1(void)
{
printf("for he is a jolly good fellow!\n");
}
function2(void)
{
printf("which nobody can deny!\n");
}

70,022

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧