![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC++、Window编程
文章平均质量分 62
kloze11
这个作者很懒,什么都没留下…
展开
-
五子棋 算法-- 只考虑当前利益
#ifndef FIVECHESS_H#define FIVECHESS_H#define Board_LEN 15#define Board_WID 15// 定义 点的数据结构typedef struct point { int x; int y; int mark;}Point ;//定义 走棋步骤链表 typedef struct ChessStep{ Point原创 2008-10-31 18:30:00 · 646 阅读 · 0 评论 -
单片机 -- 棋盘扫描、LED控制
#include sbit P3_6 = P3^0;sbit P3_7 = P3^0;void Delay(unsigned int i){ unsigned int j ; for(;i>0; --i) for(j=0;j {;}}//绿灯亮,用户可以走棋void UsrEnable(){ P3_7 = 1; P3_6 = 0;}//红灯亮,用户不能走棋void UsrForbid()原创 2008-11-15 08:54:00 · 713 阅读 · 0 评论