first commit

master
760034931@qq.com 7 years ago
parent 3ea00b5d14
commit f3f16f1b9d

@ -68,18 +68,24 @@ void DrawCheckerBoard(){
||((r==6||r==14||r==84||r==76)&&(c==36||c==44))
||((r==8||r==12||r==82||r==78)&&(c==38||c==42)))
{printf("%c",'*');}
else
else
{printf("%c",' ');}
}
printf("\n");
}
}
Write(3,23, " chuhe hanjie ");
}
//清理屏幕
void ClearPanel(){
for(int i=0;i<HEIGHT;i++){
for(int j=0;j<WIDTH;j++){
int i;
for(i=0;i<HEIGHT;i++)
{
int j;
for( j=0;j<WIDTH;j++)
{
goto_xy(j,i);
printf("%c",0x00);
}
@ -87,20 +93,6 @@ void ClearPanel(){
goto_xy(0,0);
}
//string* Registered(){
// string* str[2];
// string userName;
// string passWord;
// printf("Please press UserName");
// cin>>userName;
// printf("Please press PassWord");
// cin>>passWord;
//
// str[0]=userName;
// str[1]=passWord;
// return str;
//}
void goto_xy(int x,int y){ //定位光标位置到指定坐标
HANDLE hOut;
hOut = GetStdHandle(STD_OUTPUT_HANDLE);

Binary file not shown.
Loading…
Cancel
Save