标题:vc++路径问题
只看楼主
klw861110
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-11-3
 问题点数:0 回复次数:4 
vc++路径问题
#include<stream.hpp>
#include<dos.h>
main()
{struct dos_date_t today;
struct dos_time_ theTime;
dos_getdate(&today);
cout<<"The date is"<<(int)today.month
<<"/"<<(int)today.day<<"/"<<(int)today.year<<"\n";
dos_gettime(&theTime);
cout<<"The time is"<<(int)theTime.hour<<":";
if(theTime.minute<10)
cout<<'0';
cout<<(int)theTime.minute<<";";
if(theTime.second<10)
cout<<'0';
cout<<(int)theTime.second<<"\n";}
编译时出现Compiling...
stream.cpp
d:\工具\microsoft visual studio\myprojects\stream\stream.cpp(1) : fatal error C1083: Cannot open include file: 'stream.hpp': No such file or directory
Error executing cl.exe.
路径设置了 但还是没什么用
重装了几次也没什么用
搜索更多相关主题的帖子: 路径 
2008-11-03 17:02
nwpu063417
Rank: 3Rank: 3
等 级:论坛游民
威 望:8
帖 子:428
专家分:28
注 册:2007-5-11
得分:0 
'stream.hpp'
有这个头文件吗?

2008-11-04 23:36
cnbj
Rank: 2
等 级:论坛游民
威 望:1
帖 子:67
专家分:55
注 册:2008-11-4
得分:0 
单击“tools”->"options"->"Directories"把“show Directories for”中的几个选项中的路径重新设置一下
2008-11-05 12:00
debroa723
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:23
帖 子:862
专家分:1954
注 册:2008-10-12
得分:0 
#include<stream.hpp>
这个是什么文件?有没有?在哪儿?
搞清楚这些问题解决起来就方便了。
2008-11-05 22:08
wangluxi
Rank: 2
等 级:论坛游民
帖 子:27
专家分:29
注 册:2008-10-22
得分:0 
赞同楼上
先把#include<stream.hpp>
搞清楚
2008-11-06 18:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-242181-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.087437 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved