vc++ include
来源:百度知道 编辑:UC知道 时间:2024/05/24 22:42:45
各路大哥,小弟有一个问题目
在使用vc++的时候,
有时候可以用
#include "hanshu.h"
(hanshu.h 在 hanshu这个文件夹里)
可是有时候却要写成
#include "hanshu/hanshu.h"
这样才行,问这是为什么呀。
我现在没分,请好心人帮忙。
谢谢大家了
问题补充:不写目录的话
E:\imData\0.011\System1\umain.c(1) : fatal error C1083: Cannot open include file: 'os.h': No such file or directory
怎么办啊
在使用vc++的时候,
有时候可以用
#include "hanshu.h"
(hanshu.h 在 hanshu这个文件夹里)
可是有时候却要写成
#include "hanshu/hanshu.h"
这样才行,问这是为什么呀。
我现在没分,请好心人帮忙。
谢谢大家了
问题补充:不写目录的话
E:\imData\0.011\System1\umain.c(1) : fatal error C1083: Cannot open include file: 'os.h': No such file or directory
怎么办啊
看看你的源文件的位置,如果在
hanshu目录下,就直接写#include "hanshu.h"
如果和hanshu在同一目录下,就要写
#include "hanshu/hanshu.h"
你的头文件如果放在编译器指定的目录下就不需要写目录,否则就要。
vc++,Cannot open include file: 'stdafx.h'怎么办?
VC小问题 :#include "MDialog.h"
vc中include 所包含文件的作用
vc中关于include的一点疑问,请教大家
#include
vc.net 2003 中如何用vector?我include <vector>没用啊!!
can not open include smtp.h 请问是怎么回事 编译器是vc 需要加入库文件吗
c语言在vc于tc中运行结果为什么不同#include<stdio.h>
class CTalkDlg和#include "TalkDlg.h"两种引用方式有什么区别吗?(vc)
为何#include<stdio.h>用在TC就行,用在VC++6.0就有问题