且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C中绘制月相

更新时间:2023-02-26 20:30:23

如何执行此操作将取决于C包中可用的库!所以我不能给你代码...

基本思想很简单-尽管在.NET中您实际上不能使用它,但这里有一篇文章可以做到这一点,因为它不支持C: ^ ]
但是,该代码应该为您提供一种基本的机制-您将必须提供所有用户界面位,并仅使用后台的制定实际阶段"内容.
How you do this is going to depend on what libraries you have available in your C package! So I can''t give you the code...

The basic idea is pretty simple - there is an article here which does it, albeit in .NET which you can''t actually use becasue it doesn''t support C: Calculate and Draw Moon Phase[^]
The code should give you a basic mechanism though - you would have to provide all the user interface bits and just use the background "work out the actual phase" stuff.