哪位大虾帮下忙..自己写了个delay的头文件,放到KEIL下的INC里面.在用模块化的方式编写另一个工程里的代码的时候要用到delay函数,把delay.h包含进去了为什么会报错,不能用?不用模块化的方式写的时候又可以包含进来用?
#ifndef __DELAY_H__ #define __DELAY_H__ #define uint unsigned int void delay(uint k) {
uint i,j; for(i=0;i<k;i++) for(j=0;j<110;j++);
} #endif
哪位肯帮下我这个菜鸟???!!!感激不尽!!
|