// 电子时钟.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <windows.h>
#include<graphics.h>
#include<math.h>
#include<conio.h>
#include<stdlib.h>
#define PI 3.1415926
#undef UNICODE
#undef _UNICODE
//绘制表盘
void DranDial()
{
int x1, y1,x2,y2;
int x3, y3, x4, y4,x5,y5;
//创建窗口
initgraph(600,600);
//setbkcolor(WHITE);
setbkcolor(RGB(248,233,209));
cleardevice();//用设置号的颜色刷新
//绘制圆形
setbkcolor(BLACK);
circle(300,300,5);
circle(300, 300, 30);
circle(300, 300, 250);
circle(300, 300, 260);
circle(300, 300, 270);
char rome[][3] = { "11", "12","1","2","3","4","5","6","7","8","9","10"};
//int rome[12][3] = {'12','1','2','3'};
for (int i = 0; i < 60; i++)
{
//画短线
x1 = (int)(300 + (sin(PI*i/30)
C语言中的 outtextxy(x5, y5,s);的问题
最新推荐文章于 2023-07-09 21:32:16 发布