包含VC ++ 2005的矢量问题 [英] vector issue with include VC++ 2005

查看:73
本文介绍了包含VC ++ 2005的矢量问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在VC ++ 2005下有一个MFC应用程序.我打算使用向量变量
包括这行到我的项目中

Hi All,

I have an MFC application under VC++ 2005. I intended to use vector variables
including this line to my project

#include <vector><br />
#include <iostream><br />
<br />
using namespace std;<br />



当我编译程序时,出现了这个问题



when i compile my programm i got this issue

error C2065: 'EOF' : undeclared identifier



主要与
有关



it''s mainly related to the

<br />
#include <vector><br />



这个问题有什么解释吗?

谢谢



is there any explanation to that problem?

Thank You

推荐答案

EOF在stdio.h中定义.因此,包括此操作可能会解决您的问题.但是矢量不使用EOF,我认为错误发生在其他地方(错误输出显示源文件名和行号).
EOF is defined in stdio.h. So including this may solve your problem. But EOF is not used by vectors and I think the error happens somewhere else (source file name and line number are shown by the error output).


尝试创建仅包含矢量的示例应用程序.您将意识到问题出在其他一些人身上. :)
try creating a sample application just including vector only. you will realize that the problem is with some others. :)


这篇关于包含VC ++ 2005的矢量问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆