文档介绍:2011 年 4 月 1 日现代电子技术 Apr. 2011
第 34 卷第 7 期 M odern Electro nics T echnique V ol. 34 N o. 7
C 语言实现可视化人机界面的有效方法
李刚刚
( 陕西财经职业技术学院信息工程系, 陕西咸阳
712000)
摘
要: C 语言作为最主要的结构化程序设计语言, 应用广泛, 如何用 C 语言实现图像输出以及动画是要解决的问题。
通过设置计算机的图形模式到建立独立的图形程序, 说明 C 语言输出图像的过程; 提出 C 语言实现简单动画的异或思路和
具体方法。结合实例, 给出了 C 语言实现可视化人机界面的过程和方法。
关键词: C 语言; 可视化; 人机界面; 图形模式
中图分类号: T N911
34
文献标识码: A
文章编号: 1004
373X( 2011) 07
0142
03
Effective Methods of Realizing Visual Human
machine Interface with C Language
L I Gang
gang
( Departm ent of Info rm ation and Eng ineering, Shaanx i Vo cational T echno log y Colleg e of Finance and Eco no mics, Xianyang 712000, China)
Abstract: A s a primary st ructural prog ramming language, C languag e has ex tensiv e applications. T he aim of this paper is
to solve how to achieve image output and animation thro ugh C lang uage. T he procedure of output image throug h sett ing the
graphical mode o f co mputer and installing independent graphical prog ram is illust rated. T he x or thinking and specific met ho ds
of carrying out easy animatio n w ith C lang uag e are pro po sed. T he procedure and method of carry ing out v isual man
machine
interface with C lang uage are int roduced w ith practical ex ample.
Keywords: C language; visualizat ion; human
machine interface; g raphical mo del
实际上就是显示适配器的通称, 不同的显示适配器有着
0
引
言
不同的色彩种数和图形分辨率。因此, 在使用图形