为什么运行失败
为什么运行失败?求大神指导。
#include <stdio.h>
#include "test.c" //引用test.c文件
extern void printLine()
{
printf("**************\n");
}
int main()
{
say();
return 0;
}
为什么运行失败?求大神指导。
#include <stdio.h>
#include "test.c" //引用test.c文件
extern void printLine()
{
printf("**************\n");
}
int main()
{
say();
return 0;
}
2018-12-15
hello.c中
#include <stdio.h>
void printLine() //这里定义的方法对吗?
{
printf("**************\n");
}
extern void say();
int main()
{
say();
return 0;
}
test.c中
#include <stdio.h>
extern void printLine();
void say()
{
printLine();
printf("I love imooc\n");
printf("good good study!\n");
printf("day day up!\n");
printLine();
}举报