Qt 里面运行
#include<windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
typedef struct
{
int x;
int y;
}Point;
time_t now;
struct tm *pt, t1, t2;
int printpoint(Point p)
{
Point p1;
p1.x = p.x + 2; p1.y = p.y + 4;
gotoxy(p1.x, p1.y); printf("%c%c", 2, 2);
gotoxy(p1.x, p1.y + 1); printf("%c%c", 2, 2);
p1.y += 4;
gotoxy(p1.x, p1.y); printf("%c%c", 2, 2);
gotoxy(p1.x, p1.y + 1); printf("%c%c", 2, 2);
return 0;
}
int print0(Point p)
{
int i = 0;
for (; i<13; i++)
{
gotoxy(p.x + 1, p.y + i);
if (i == 0 || i == 12)
printf("%c%c%c%c%c%c", 2, 2, 2, 2, 2, 2);
else
printf("%c%4s%c", 2, " ", 2);
}
return 0;
}
int print1(Point p)
{
int i = 0;
for (; i<13; i++)
{
gotoxy(p.x + 1, p.y + i);
printf("%5s%c", " ", 2);
}
return