1 2 3 4

C语言多文件联合编程模式

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

extern void Speaks();    //extern关键字修饰的变量和函数等,都是可以被整个项目共享调用的,所以可以使用extern函数来引入其他文件的内容,但是要把要引入的东西都写完整

#define _CRT_SCURCE_NO_WARINGS

int main()
{
Speaks();

system("pause");
return 0;
}

posted on 2020-12-16 17:08  三日坊主i  阅读(216)  评论(0)    收藏  举报

导航