摘要:        
效果图如下:1.蛇的数据结构使用双链表实现,数据结构如下:typedef struct{ int y; int x;}Pos;typedef struct node{ Pos loc; struct node *prior; struct node *next;}node;typedef struct Dlink{ node *head; node *tail; int count;}Dlink;Dlink snake; //the snake 另外注意,由于要在链表头部插入节点,在尾部删除节点,所以最好选择自带头节点和尾节点的双...    阅读全文
posted @ 2012-08-24 22:45
dandingyy
阅读(2393)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号