|
珞珈山水BBS →
电脑网络 →
程序人生 →
单文区文章阅读
|
| 单文区文章阅读 [返回] |
|---|
|
发信人: oo (农夫三拳), 信区: Programm 标 题: 搞了一天没搞出来,问! 发信站: BBS 珞珈山水站 (Tue Jul 26 21:09:01 2005) 编译下程序 头文件为 #include "Draw1.h" class CTag : public CDraw { protected: int m_idBlock; //子图快识别号 float x_Insert; //插入点横坐标 float y_Insert; //插入点纵坐标 float x_Scale; //横向缩放比例 float y_Scale; //纵向缩放比例 float m_angle; //子图旋转角度 CBlock* p_Block; //指向子图块的指针 public: CTag(); CTag(short ColorPen,short ColorBrush,short LineType,float LineWide,BOOL De lete, short Layer,int id_only,int idBlock,float xInsert,float yInsert,float xScale, float yScale,float angle) :CDraw(ColorPen,ColorBrush,LineType,LineWide,Delete,Layer,id_only) { m_idBlock=idBlock; x_Insert=xInsert; y_Insert=yInsert; x_Scale=xScale; y_Scale=yScale; this->m_angle=angle; }; virtual ~CTag(); }; 实现文件为 #include "stdafx.h" #include "Draw.h" #include "Tag.h" #include "DrawDoc.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CTag::CTag() { } CTag::~CTag() { } 出现以下错误 Compiling... Tag.cpp e:\暑假学习vc\draw\tag.h(24) : error C2143: syntax error : missing ';' before '*' e:\暑假学习vc\draw\tag.h(24) : error C2501: 'CBlock' : missing storage-class o r type specifiers e:\暑假学习vc\draw\tag.h(24) : error C2501: 'p_Block' : missing storage-class or type specifiers Error executing cl.exe. Tag.obj - 3 error(s), 0 warning(s) 用百度搜了很多遍, 死活不行 问高手 求解 qq:58440063 -- ┏━━━━━━┓ ┏┫ |||┣┓ ┏┓ ┗┫━━ ┃ ━━┣┛ ┣┫ ┃ ━━━━ ┃ ┏┳┫┣┳┓ ┗━━━━━━┛ ┃ ┃ ※ 来源:·珞珈山水BBS站 http://bbs.whu.edu.cn·[FROM: 202.114.123.*] |
| [返回单文区目录] |
|
|