| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 781 人关注过本帖
标题:求个简单的问题
只看楼主 加入收藏
lgdenanzi
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2008-4-2
收藏
 问题点数:0 回复次数:5 
求个简单的问题
int l1=strlen(seq1);
这样 在C中 是正确的吗
为什么VC6.0 C:\Documents and Settings\ASUS\桌面\a.c(17) : error C2143: syntax error : missing ';' before 'type'
出现这个错误呢
搜索更多相关主题的帖子: ASUS syntax int Settings 
2008-04-10 17:30
chmlqw
Rank: 1
等 级:新手上路
帖 子:180
专家分:0
注 册:2007-10-11
收藏
得分:0 
常量应该不能赋值吧
2008-04-10 17:33
lgdenanzi
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2008-4-2
收藏
得分:0 
我求的是seq1 这个字符串的长度啊
2008-04-10 17:34
bjtusq
Rank: 2
来 自:BJTU
等 级:论坛游民
帖 子:141
专家分:20
注 册:2006-8-5
收藏
得分:0 
不是这行的错误吧

[url][/url]
2008-04-10 17:36
lgdenanzi
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2008-4-2
收藏
得分:0 
--------------------Configuration: a - Win32 Debug--------------------
Compiling...
a.c
C:\Documents and Settings\ASUS\桌面\a.c(17) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\ASUS\桌面\a.c(18) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\ASUS\桌面\a.c(20) : error C2065: 'l1' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(25) : error C2065: 'l2' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(84) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\ASUS\桌面\a.c(85) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\ASUS\桌面\a.c(86) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\ASUS\桌面\a.c(95) : error C2065: 'align1' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(95) : error C2065: 'align1_length' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(95) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(95) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(96) : error C2065: 'align2' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(96) : error C2065: 'align2_length' : undeclared identifier
C:\Documents and Settings\ASUS\桌面\a.c(96) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(96) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(103) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(103) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(104) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(104) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(110) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(110) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(111) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(111) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\ASUS\桌面\a.c(116) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(119) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\ASUS\桌面\a.c(126) : warning C4013: 'system' undefined; assuming extern returning int
执行 cl.exe 时出错.
2008-04-10 17:42
now
Rank: 1
来 自:广州
等 级:新手上路
帖 子:544
专家分:0
注 册:2007-11-9
收藏
得分:0 
源代码呢?

GIS
Geographic Information System
你在哪里?——》你的坐标?
2008-04-10 18:57
快速回复:求个简单的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014189 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved