摘要: LINEDEMO程序绘制一个矩形、两条直线、一个椭圆和一个圆角矩形。该程序表明,定义了封闭矩形的这些函数确实对这些区域进行了填充,因为椭圆后面的线被隐藏了。 1 /* 2 LINEDEMO.C -- Line-Drawing Demonstration program 3 (c) Charles P 阅读全文
posted @ 2018-04-25 16:16 web1013 阅读(240) 评论(0) 推荐(0)
摘要: 1 //SINEWAVE.C -- Sine Wave Using Polyline (c) Charles Petzold, 1998 2 #include <Windows.h> 3 #include <math.h> 4 5 #define NUM 1000 6 #define TWOPI ( 阅读全文
posted @ 2018-04-25 14:33 web1013 阅读(254) 评论(0) 推荐(0)
摘要: 获取设备环境的信息 1 //DEVCAPS1.C--Device Capabilities Display Program No.1 (c) Charles Petzold, 1998 2 #include <Windows.h> 3 4 #define NUMLINES ((int) (sizeo 阅读全文
posted @ 2018-04-25 10:42 web1013 阅读(228) 评论(0) 推荐(0)