📄 一个漂亮的万花筒.cpp
字号:
/***********************
软件工程2002级3班
靳国荣
学号:20026235
***********************/
#include <stdlib.h>
#include "ezwin.h"
#include "ircleShape.h"
#include "RandomInt.h"
#include "SquareShape.h"
#include "TriangleShape.h"
#include "Kaleidoscope.h"
SimpleWindow KWindow("Kaleidoscope",10.0,10.0,Position(2.0,2.0));
Kaleidoscope KScope(KWindow,1000);
int DispatchTimerClick()
{
KScope.Turn();
return 1;
}
int ApiMain()
{
KWindow.Open();
KWindow.SetTimerCallback(DispatchTimerClick);
KWindow.StartTimer(KScope.GetSpeed());
return 0;
}
int ApiEnd()
{
KWindow.Close();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -