📄 mainfile.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -