天地之灵学习小组
我们学习小组的OpenGL学习笔记 大家一定要互相折磨呀~~
posts - 150,  comments - 156,  trackbacks - 0
        休了那么长时间的假,那个不亦不爽乎啊。因为总觉得惭愧,还是那个比喻,就跟传教士患了梅毒一样。所以要么继续传教要么继续传病。从整个人类社会的发展上来讲,前者做正功,于是我选择洁身自好继续传教。所以,我的玛利医生又回来了。

       今天又重新写了,因为耽搁了那么久忘记差不多了,即使能回忆起来也不想接着那个写,因为我总觉得写自己写过的东西没意思并且很没意思。今天也只是写了一点儿,确实差距很大很大,我脑袋里只存在几个概念,知道C++里有那么几个东西,知道他们能做什么,但是确实是不太清楚那几个英文单词什么时候应该放到一起什么时候需要分离,就是大家说的语法。每一次都是因为这样子总是要再看一遍再看一遍,所以做起来很没有兴趣,只是靠毅力在做在查。难道我文理结合的东西就是学不好?同学说,那是因为不用心。今天的也只是写了一点儿,为了表达我的玛利又艰难的走了回来的意思,我努力写了一些。贴上来证明我思考了。

       最后一句,路的名字叫漫漫长。嘴上得来终觉浅,得知此事要躬行。虽然你有思路,但是写出来你就没有了,所以你不写你就没有思路。十一月的肖赤赤要加油啊~~已经又长了一岁了。哦,说了不止一句。那贴吧。
enum color{RED,YELLOW,BLUE};
enum connectstate{NOT,LEFT,RIGHT,UP,DOWN};

class Rect
{
public:
    
int initX();
    
int initY();
    
int initColor();
    
int getX();
    
int getY();
    
int getColor();
//    int getConnectstate();
    void RectMade();
private:
    
int x,y,color;
//    int connectstate;
}
;
int Rect::initX()
{
    x
=x0;
    
return x;
}

int Rect::initY()
{
    y
=y0;
    
return y;
}

int Rect::initColor()
{
    color
=random(color);
    
return color;
}

int Rect::getX()
{
    
return x;
}

int Rect::getY()
{
    
return y;
}

int Rect::getColor()
{
    
return color;
}

//int Rect::getConnectstate()
//{
//    return connectstate;
//}
void Rect::RectMade()
{
    
int RectSingle[4];
    RectSingle[
0]=Rect::x;
    RectSingle[
1]=Rect::y;
    RectSingle[
2]=Rect::color;
    
//RectSingle[3]=Rect::connectstate;

}


class Pill
{
public:
    
void PillMade();
    
int getConnectstate();
private:
    connectstate;
}
;
void Pill::PillMade()
{
Rect Pill[
2];
Pill[
0]=Rect::RectMade;
Pill[
1]=Rect::RectMade;
}

int Pill::getConnectstate()
{
    
return connectstate;
}


class Worm
{
public:
    
void WormMade();
}
;
void Worm::WormMade()
{
Rect Worm
Worm
=Rect::RectMade;
}


class Map
{
public:
    
void initMap();
    
void MapNow();
private:

}
;
void Map::initMap()
{
    Rect Map[
16][8];
    
for(int i=0;i<16;i++)
        
for(int j=0;j<8;j++)
        
{
            Map[i][j]
=Rect::RectMade;
        }

}


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理



<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用链接

留言簿(6)

随笔分类(149)

随笔档案(150)

同道中人

搜索

  •  

积分与排名

  • 积分 - 43833
  • 排名 - 486

最新随笔

最新评论

阅读排行榜

评论排行榜