自定义头文件 宏定义不识别
第一次发帖~//新建tonyAlgs.h文件 ,内容如下:
#ifndef _tonyAlgs_H_
#define _tonyAlgs_H_
#define myFileName "testdata.txt"
#endif
将文件放入.c的同级目录
#include <stdio.h>
#include "tonyAlgs.h"
int main()
{
printf(myFilename);
return 0;
}
[Error] 'myFilename' was not declared in this scope