c++ 组建时出现beziercurve.h(19) : error C2236: unexpected 'class' 'CBezierCurve' 10
BezierCurve.h文件如下#include"stdafx.h"#include<GL/gl.h>#include<GL/glu.h>#include<GL/gla...
BezierCurve.h文件如下
#include"stdafx.h"
#include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glaux.h>
struct myPOINT2D{
GLdouble x,y;
}
#define MAX 50
#if !defined(AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_)
#define AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CBezierCurve: public CBezierC
{
public:
myPOINT2D m_Vertex[MAX];//控制顶点,以数组储存
//myPOINT2D是一个存储二维点的结构,成员:Gldouble x,y
int m_N;//控制顶点个数
public:
CBezierCurve();
virtual ~CBezierCurve();
void bezier_generation(myPOINT2D P[MAX],int level);
//算法的具体实现
void myDraw();//画曲线函数
void myPloygon();//画多边形函数
}
#endif // !defined(AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_) 展开
#include"stdafx.h"
#include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glaux.h>
struct myPOINT2D{
GLdouble x,y;
}
#define MAX 50
#if !defined(AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_)
#define AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CBezierCurve: public CBezierC
{
public:
myPOINT2D m_Vertex[MAX];//控制顶点,以数组储存
//myPOINT2D是一个存储二维点的结构,成员:Gldouble x,y
int m_N;//控制顶点个数
public:
CBezierCurve();
virtual ~CBezierCurve();
void bezier_generation(myPOINT2D P[MAX],int level);
//算法的具体实现
void myDraw();//画曲线函数
void myPloygon();//画多边形函数
}
#endif // !defined(AFX_BEZIERCURVE_H__3A6C7131_622E_4098_97B3_0FA7FB37FB31__INCLUDED_) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询