| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 745 人关注过本帖
标题:typedef 的问题
只看楼主 加入收藏
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
 问题点数:0 回复次数:6 
typedef 的问题
typedef CMap<CString,LPCSTR,CRect,CRect&> CMapCSrtringToCRect;
这语句有错误吗?
还有他的确切意思是什么啊?
搜索更多相关主题的帖子: typedef 
2006-11-19 14:12
cz522321
Rank: 1
等 级:禁止访问
威 望:2
帖 子:569
专家分:5
注 册:2006-3-13
收藏
得分:0 
不好意思,我对模板数据类型接触的还不很多。

2006-11-19 15:43
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 
那也谢谢你!

2006-11-19 15:46
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 
error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
error C2146: syntax error : missing ';' before identifier 'mapStrToRect'
error C2501: 'CMapCStringToCRect' : missing storage-class or type specifiers
error C2501: 'mapStrToRect' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'

error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
error C2146: syntax error : missing ';' before identifier 'mapStrToRect'
error C2501: 'CMapCStringToCRect' : missing storage-class or type specifiers
error C2501: 'mapStrToRect' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
这是系统给我的提示!!

2006-11-19 16:05
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 
怎么没有人回答我啊,是我说的不够具体吗??

2006-11-19 21:26
Bekky
Rank: 3Rank: 3
等 级:新手上路
威 望:7
帖 子:354
专家分:0
注 册:2006-5-29
收藏
得分:0 

应该是错的,直接这样就应该OK了。
CMap<CString,LPCSTR,CRect,CRect&> CMapCSrtringToCRect


我的编译环境为WinXp + VC 6.0 http://blog..cn/yobo
2006-11-20 09:53
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 
谢谢你,我昨天又试了一下,我写的也正确,就是没加头文件!

2006-11-20 13:12
快速回复:typedef 的问题
数据加载中...
 
   



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

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