求vc6.0界面下的五子棋源代码

来源:百度知道 编辑:UC知道 时间:2024/06/14 14:17:11
本人c++课程设计到了!网上也下了个网络版的c++游戏(mfc)。感觉太难,如果各位大哥有简单点的源代码,就发给我吧!
你们也可以发个简单的程序,不是五子棋也可以。我现在还想做个计算器。如果谁发两个满意的程序来。我另外加分,我还有600多。

这个太多了啊,你要vc下的,那基本都会用mfc的,因为vc没有画图函数啊,又TC3.0的你要不要

* 运行环境:TC3.0 (vc6.0不支持画图函数,无法画出棋盘和棋子)
************************************************************* #include
#include
#include
#include
#define backcolor CYAN
#define defaultcolor BLACK
#define linecolor MAGENTA
#define player1_color RED
#define player2_color WHITE
#define error_color RED
#define winner_color RED

const int left=40;
const int top=390;
const int d=30;
const int line_num=9;
const int turn=0;
const int r=d/3;
const int j=10;
int x,y,k=1,step=(line_num+1)*(line_num+1);
union REGS regs1,regs2;
class player1;
class player2;
class qipan{
public:
qipan();
~qipan(){};
void init_qipan();
friend void fall(player1 &num1,player2 &num2,qipan &num);
friend void input(player1 &num1,player2 &num2,qipan &num);

private:
int point[li