针对于这个问题有多种可能性:
1、.h文件为系统自带的头文件,可以查找工程或是工具中的选项进行配置,看是否包含了需要的头文件,如iostream,cmath,stdio等等
2、.h文件为个人写的头文件。该情况分为几种:
1)要引用的头文件与引用文件在同一文件夹下直接#include“xx.h”
2)不在同一文件夹下:#include“..\xx\xx.h” #include".\xx\xx.h" #include"..\xx.h" #include".\xx.h" #include"\xx.h"