⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d_draw.h

📁 数据结构c++语言描述stl版 威廉兄弟的好书,值得看,这是配书代码
💻 H
字号:
#ifndef GRAPHICS_OPERATIONS
#define GRAPHICS_OPERATIONS

#include "ezdraw.h"

void openWindow();     // initialize drawing surface
void viewWindow();     // wait until a key is pressed
void eraseWindow();    // erase the drawing window
void closeWindow();    // close the drawing surface

// wait secs seconds before executing next instruction
void delayWindow(double secs);
// return true if a key pressed; otherwise, return false  
bool keyPress();		

// ***********************************************************
//      graphic functions implementation
// ***********************************************************

void openWindow()
{
   ezdInitialize();
}

void viewWindow()
{
   ezdWaitForKeyPress();
}

void eraseWindow()
{
   ezdClearDrawSurface();
}

void closeWindow()
{
   ezdCleanUp();
}

void delayWindow(double secs)
{
   ezdWait((EZDUINT)(secs * 1000));
}

bool keyPress()
{
   if (ezdKeyPress() != 0)
      return true;
   else
      return false;
}

#endif	// GRAPHICS_OPERATIONS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -