C中没有graphics.h的模拟时钟 [英] analog clock in C without graphics.h

查看:58
本文介绍了C中没有graphics.h的模拟时钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用模拟时钟,但是所有示例都使用graphics.h.

我不能使用graphics.h,这是行不通的.
h.

I''m working on a analog clock but all the examples use graphics.h.

i can''t use graphics.h that doesn''t work.
How do i make a analog clock without graphics.h.

推荐答案

报价:

我不能使用graphics.h,这是行不通的.

i can''t use graphics.h that doesn''t work.


但是,您可以使用 GDI + [ ^ ]库(如果您将Windows切换到C++).
如果您坚持使用C,则可以使用GDI原语.
您可能会找到


However you may use the Graphics class of the GDI+[^] library (provided you''ll switch to C++ for Windows).
If you are stuck with C then you may use the GDI primitives.
You may find several examples of analog clock applications[^] written this way.


如果这就是我的想法,这头文件用于Borland图形接口,BGI.对于MS DOS而言,这是一个非常糟糕的库,在几乎没有可用的图形界面时被广泛使用.目前,它已完全过时,并且不受任何现代OS版本的支持.虽然有一些模拟器,但有些宽松的人仍在使用它们.这种情况很少发生.如果您不是其中之一,请询问其他事项.表示您的操作系统.

—SA
If this is what I think, this header file is for Borland Graphics Interface, BGI. It was quite a bad library for MS DOS, widely uses when there was very little graphics interfaces available. Presently, totally obsolete and not supported by any version of modern OS. There are some simulators though, and some loosers still use them; it happens very rarely. If you are not one of them, ask about something else; indicate you OS.

—SA


这篇关于C中没有graphics.h的模拟时钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆