用C语言输出五子棋的棋盘

来源:百度知道 编辑:UC知道 时间:2024/05/16 11:46:25
怎么样能在VC环境里用C语言输出五子棋的棋盘啊?不能用TC的函数。
这个是我们期末的课程设计题之一,要求用VC++6.0编译,用标准C编写。可以用VC的库函数,做一个人机对战的五子棋程序。总之不能用面向对象以及视窗,可以用VC里C语言的库函数。

我真的想问你们老师有病啊
用vc++编译 c
说是用标准的c编写 又说可以用vc的库函数
自相矛盾

************************************************************** C++语言五子棋源程序 ************************************************************* #include <graphics.h>
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#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 &nu