社区
C++ 语言
帖子详情
新手求助!!!!fstream(15) : error C2059: syntax error : 'namespace'
pucca
2012-03-29 09:21:14
头是这样的
#include"interface.h"
#include<fstream>
#include<iostream>
using namespace std;
...全文
315
6
打赏
收藏
新手求助!!!!fstream(15) : error C2059: syntax error : 'namespace'
头是这样的 #include"interface.h" #include #include using namespace std;
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
pucca
2012-03-29
打赏
举报
回复
[Quote=引用 2 楼 的回复:]
interface.h这个文件是否存在?
[/Quote]
对了我这个是个空的工程 为什么每次重新点进去都要把interface.h这个文件添一次
pucca
2012-03-29
打赏
举报
回复
[Quote=引用 4 楼 的回复:]
基本的语法错误,自己按照提示去排查吧。
[/Quote]
不行啊!!错误都提示在fstream里面
pengzhixi
2012-03-29
打赏
举报
回复
基本的语法错误,自己按照提示去排查吧。
pucca
2012-03-29
打赏
举报
回复
[Quote=引用 2 楼 的回复:]
interface.h这个文件是否存在?
[/Quote]
存在,
哦好像没有放进这个工程里 。。。
放进去了,然后又有错误了!!
error C2146: syntax error : missing ';' before identifier 'cp'
: error C2501: 'Carport' : missing storage-class or type specifiers
: fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
面包大师
2012-03-29
打赏
举报
回复
interface.h这个文件是否存在?
pucca
2012-03-29
打赏
举报
回复
编译的错误 全部都在fstream 这个里面!!!!!!!!!!怎么回事
error
C2065: '
fstream
' : undeclared identifier
error
C3861: 'opfile': identifier not found
问题:1>compute.cpp1>f:/programe/compute/compute.cpp(
15
) :
error
C2065: '
fstream
' : undeclared identifier1>f:/programe/compute/compute.cpp(
15
) :
error
C2146:
syntax
error
: missing ';' before identifier 'opfile'1>f:/programe/compute/compute.cpp(
15
) :
error
C3
error
C2143:
syntax
error
: missing ';' before 'PCH creation point'
今天开始 用 slickedit ,但是第一个cpp就执行不成功,难道是不支持C++??好像不太可能,无奈,只能拿到VC下进行验证结果还是报错:Config.h#ifndef _CONFIG_H#define _CONFIG_H #include #include #include "modem.h"#include "MacroDefine.h"#d
caffe编译:fatal
error
: pyconfig.h: No such file or directory #include "pyconfig.h“编译protobuf
sudo make clean sudo make all -j8 报错 CXX tools/caffe.cpp In file included from /usr/include/boost/python/detail/prefix.hpp:13:0, from /usr/include/boost/python/args.hpp:8, ...
关于vs2010
fstream
.h文件的问题
今天在VS2010中使用 #include
fstream
.h > ,会出现下面的错误提示: fatal
error
C1083: Cannot open inclu
调试编译错误信息总结
通用问题 debug下正常,release下崩溃 大部分是变量未初始化,debug 、release下 变量未初始化时,给的默认值不同 具体问题 0 unresolved external symbol
error
LNK2019: unresolved external symbol
error
LNK2001: unres..............................
C++ 语言
64,646
社区成员
250,476
社区内容
发帖
与我相关
我的任务
C++ 语言
C++ 语言相关问题讨论,技术干货分享,前沿动态等
复制链接
扫一扫
分享
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
请不要发布与C++技术无关的贴子
请不要发布与技术无关的招聘、广告的帖子
请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下
试试用AI创作助手写篇文章吧
+ 用AI写文章