66问答网
所有问题
C++程序头 #include<iostream> 用microsoft visual studio2012编译提示如下,怎么办?
错误 1 error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "pch.h"”?
举报该问题
推荐答案 2013-07-30
#include "stdafx.h"
#include<iostream>
using namespace:std;
这个是推荐的写法.
#include<iostream.h>已经过时了。
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://66.wendadaohang.com/zd/sxsnx9psp.html
其他回答
第1个回答 2013-07-30
改为 #include<iostream.h>
相似回答
c++
的程序
visual
studio
中调试出错
程序如下
答:
这样就可以了
include
<
iostream
> include <vector> using namespace std;int main(){ int num;cout<<"Please enter the number.";cin>>num;cout<<num;system("pause");vector<int> cint(6,0);int i=0;cout<<"Please enter the content of the vector.";for(;i != cint.size();i++...
vs2012中
c++
无法
编译
的问题
答:
include <
iostream
> using namespace std;int main(){ cout<<"hello"<<endl;return 0;} 你试下能不能编译
...
c++
6.0\
microsoft
visual
studio
\myprojects\demo\f
答:
是你的
include
文件夹中没有包含
iostream
头文件 只需找一个头文件放里面就行 省事的话可以直接吧include这个文件夹换了
在
Visual
Studio 2012
中怎样使
编译
C
程序
答:
在
Visual
Studio 2012
中使 编译C程序步骤如下:打开文件->新建->项目,选择win32控制台(注意不要选错,我在这栽了不少跟头),在下面随便输入一个文件的名字就行,根本不用像网上说的要改什么文件的后缀,然后点击下一步,出现对话框,在空项目前面打勾,单击完成。出现一个空白的页面,在左侧的...
...是
提示
c:\program files\
microsoft
visual
studio
\myprojects\2\2...
答:
出现这个问题应该是因为该模块没有包括预编译头文件“stdafx.h”的缘故,在VC中是用一个stdafx.cpp包含头文件stdafx.h,然后在stdafx.h里包含大部分系统头文件,这样编译时VC就通过编译stdafx.cpp把大部分系统头文件预编译进来了,在Debug目录下有 一个很大的文件*.pch,这里就存储了预编译信息,如果PCH...
visual
c++
运行
如下程序提示
的错误,高手帮解决下1!急!!!111
答:
是不是没包含头文件conio.h,但是在vc的conio.h中找不到textcolor,textbackground,在TC中有,不同的编译器有不同的函数支持。所以你可以换TC试试,希望可以有帮助。在windows下的vc推荐使用<windows.h>中的函数实现,自己可以查一下资料很多的。
大家正在搜
include iostream
include cstdio
有以下程序include
include怎么用
iostream怎么读
includestdio
include怎么读
c语言也可以用iostream
include程序
相关问题
我用的Visual C++6.0,不能编译含有头文件#inc...
visual studio C++2012怎么编译链接和运行...
在Visual Studio 2012 中怎样使 编译C程序
我用vs2010编写c++的时候指示说#include<io...
请问visual studio2013中编译C++时出现这个...
用Microsoft Visual studio2012c语...
C++头文件iostream 无法包含 的 问题 ,请各位指...
C++程序用#include <iostream.h>编译通...