社区
C++ 语言
帖子详情
请教:error C2059: syntax error : 'constant'是什么错误?怎样解决?
walkiron
2003-12-14 12:00:38
error C2059: syntax error : 'constant'是什么错误?怎样解决?
...全文
834
4
打赏
收藏
请教:error C2059: syntax error : 'constant'是什么错误?怎样解决?
error C2059: syntax error : 'constant'是什么错误?怎样解决?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
layman2008
2003-12-14
打赏
举报
回复
误用关键字了吧
可是vc的c2059是
Compiler Error C2059
syntax error : 'token'
The token caused a syntax error. Problems of this type can sometimes be attributed to a syntactical or clerical error. For example:
void main ( // No closing parenthesis.
{
}
codelover
2003-12-14
打赏
举报
回复
代码?
liuleilover
2003-12-14
打赏
举报
回复
const
sboom
2003-12-14
打赏
举报
回复
代码看看。
Compiler Confidential - Eric Brumer (6th Sept 2013)-计算机科学
c:\work\a.cpp(82):
error
C2059
:
syntax
error
: ')'c:\work\a.cpp(84):
error
C2015: too many characters in
const
ant
c:\work\a.cpp(104):
error
C2015: too many characters in
const
ant
c:\work\a.cpp(104):
error
C2001: newline in
const
ant
c:\work\a.cpp(116):
error
C2015: too many characters in
const
ant
c:\work\a.cpp(116):
error
C2001: newline in
const
ant
c:\work\a.cpp(122):
error
C2153: hex
const
ant
s must have at least one hex digitc:\work\a.cpp(122):
error
C2001: newline in
const
ant
c:\work\a.cpp(122): erro
php异常:Parse
error
:
syntax
error
, unexpected T_ENCAPSED_AND_WHITESPACE eval()'d code
error
PHP会出现eval()'d code
error
错误
提示的原因一般都是因为模板
错误
,原因有以下几种情况
c语言编译常见
错误
列表
1."c" not an argument in function sum 该标识符不是函数的参数 2.array bounds missing ] in function main 缺少数组界限符 "]" 3.Array size too large in function main 数组规模太大 4.bad file name format in include directive 在包含指令中的文件名格式不正确. 5.Call of non-function in function main 调用未经过定义的函数. 6.cannot modify a
const
object in function main 对常量不能进行修改. 7.character
const
ant
too long in function main 字符常量太大 8.
const
ant
expression required in funtion main 数组定义的时候,数组大小要求是常数 9.compound statment missing } in function main 复合语句漏掉符号 "{" 10.declaration
syntax
error
in function main 宣告语法
错误
……
c语言
错误
代码
c2059
syntax
,突然出现
错误
gdiplustypes.h(280):
error
C2059
:
syntax
error
: '
const
ant
'等未知
错误
(示例代码)...
gdiplustypes.h(280):
error
C2059
:
syntax
error
: ‘
const
ant
‘gdiplustypes.h(280):
error
C2238: unexpected token(s) preceding ‘;‘gdiplustypes.h(281):
error
C2059
:
syntax
error
: ‘
const
ant
‘gdiplustypes.h(...
error
C2059
:
syntax
error
: '
const
ant
'
error
C2059
:
syntax
error
: '
const
ant
'
C++ 语言
64,282
社区成员
250,470
社区内容
发帖
与我相关
我的任务
C++ 语言
C++ 语言相关问题讨论,技术干货分享,前沿动态等
复制链接
扫一扫
分享
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
请不要发布与C++技术无关的贴子
请不要发布与技术无关的招聘、广告的帖子
请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下
试试用AI创作助手写篇文章吧
+ 用AI写文章