一个漂亮的万花筒.cpp
来自「一个漂亮的万花筒游戏」· C++ 代码 · 共 36 行
CPP
36 行
/***********************
软件工程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 + =
减小字号Ctrl + -
显示快捷键?