社区
新手乐园
帖子详情
expected unqualified-id before ‘using’
guoshixin121
2010-03-16 08:55:12
C++一个小白问题,但是一直不能解决,有哪位高人指点一下:
#include <iostream>
#include "dictionary.h"
using namespace std;//在此处报错:expected unqualified-id before ‘using’
...全文
1246
4
打赏
收藏
expected unqualified-id before ‘using’
C++一个小白问题,但是一直不能解决,有哪位高人指点一下: #include #include "dictionary.h" using namespace std;//在此处报错:expected unqualified-id before ‘using’
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
昵称很不好取
2010-03-16
打赏
举报
回复
你的 dictionary.h 文件里是不是有class定义,看下最后加没加分号;
guoshixin121
2010-03-16
打赏
举报
回复
多谢高人,果然是"dctionary"中的类声明后边少了分号
困扰了我一个多小时,哎.....
dubiousway
2010-03-16
打赏
举报
回复
另写一个程序:
就只写:
#include <iostream>
#include "dictionary.h"
void main(){}
看看编译有问题吗?如果有问题,#1楼同。
冻结
2010-03-16
打赏
举报
回复
#include "dictionary.h"
应该是这个东西有问题了。
expected
unqualified
-
id
before
using
#include xxx.h ...报销指向的的是 “
expected
unqualified
-
id
before
using
” 这一行 搜了下这个报错的原因 发现是前面包含的头文件中定义的结构体没有加;导致 typedef struct xxx { int x; cha...
g++编译错误:
expected
unqualified
-
id
before ‘
using
’
今天写了一个occi的C++程序,结果一编译就出了个莫名其妙的...TDBPro.cpp:3: 错误:
expected
unqualified
-
id
before ‘
using
’ TDBPro.cpp 的第一行代码为头文件包含,第二行为空行,第三行就为
using
命名空间
expected
unqualified
-
id
before ‘
using
’ 错误
[Error] D:\VC资料\c_workspace\Car_test\LoadVehicle.h:12: error:
expected
unqualified
-
id
before "
using
" 搞来搞去,最后发现是包含的头文件中定义类的时候没有加分号: Clas
C++报错集合:
expected
unqualified
-
id
before ‘
using
’
今天写了一个occi的C++程序,结果一编译就出了个莫名其妙的...TDBPro.cpp:3: 错误:
expected
unqualified
-
id
before ‘
using
’ TDBPro.cpp 的第一行代码为头文件包含,第二行为空行,第三行就为
using
命名空间
新手乐园
33,311
社区成员
41,784
社区内容
发帖
与我相关
我的任务
新手乐园
C/C++ 新手乐园
复制链接
扫一扫
分享
社区描述
C/C++ 新手乐园
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章