mainfile.c

来自「AVR单片机的C语言源程序,包括按键扫描EEPROM通讯LCD显示数码管显示等等」· C语言 代码 · 共 30 行

C
30
字号
/* Example of a simple multifile project

   CodeVisionAVR C Compiler
   (C) 2000-2002 HP InfoTech S.R.L.
   www.hpinfotech.ro
*/

// this is the main file of the project

// include the header files with function declarations
#include "file1.h"
#include "file2.h"
#include "file3.h"

main() {
// declare a local variable
int i;
// call a function with the prototype declared in "file1.h"
// the function itself is located in "file1.c"
i=func1(10);
// call a function with the prototype declared in "file2.h"
// the function itself is located in "file2.c"
i=func2(i);
// call a function with the prototype declared in "file3.h"
// the function itself is located in "file3.c"
i=func3(i);
// stop here
while (1);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?