//*.h文件
class Clianliankan
{public:
typedef struct _Point {
unsigned short x;
unsigned short y;
} Point;
......
//*.cpp文件
Point Clianliankan::get_xy(unsigned short p)//出错啦!!!!!!!!!!!!
{
Point point;
point.x = p/(h+2);
point.y = p%(h+2)-1;
return point;
}
编译提示:
error C2143: syntax error : missing ';' before 'tag::id'
error C2501: 'tagPoint' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found请问怎么解决啊。
class Clianliankan
{public:
typedef struct _Point {
unsigned short x;
unsigned short y;
} Point;
......
//*.cpp文件
Point Clianliankan::get_xy(unsigned short p)//出错啦!!!!!!!!!!!!
{
Point point;
point.x = p/(h+2);
point.y = p%(h+2)-1;
return point;
}
编译提示:
error C2143: syntax error : missing ';' before 'tag::id'
error C2501: 'tagPoint' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found请问怎么解决啊。
解决方案 »
- 求救,vc2008工程的rc文件误删了,怎么办
- vc++下怎样让mschart竖着显示走线?
- VC的日期问题,错误的日期值
- 关于gif背景透明问题
- 使用vs2005插入access库失败?
- 线程等待的问题
- 请高手指点:系统"Print Screen SysRp"键截图的原理,以及截图工具的原理,如何屏蔽截图
- 急!各位大虾,要改编下面的程序,改成在格子内移动的,而不是在格子顶上移动的。
- 请问“空格”和“点”的值?
- 我用vc写的Activex控件,它每秒要画25帧在控件区域上,现在问题是,我在使用该控件时,要在该控件的上层放一个label控件,但label控件被画
- 请教高手,关于ado中数据集异步操作的问题
- 请教继承自CButton的自绘按钮
{public:
typedef struct _Point {
unsigned short x;
unsigned short y;
} Point;//*.cpp文件
Point Clianliankan::get_xy(unsigned short p)//出错啦!!!!!!!!!!!!
{
Point point;
point.x = p/(h+2);
point.y = p%(h+2)-1;
return point;
}}; //加上就OK。
{
...
}