graphlib.h

来自「Data Structures with C++附代码」· C头文件 代码 · 共 19 行

H
19
字号
#ifndef GRAPHLIB
#define GRAPHLIB

void DrawPoint(float x, float y);
void DrawLine(float x1, float y1, float x2, float y2);
void DrawRectangle(float left, float top, float right, float bottom);
void DrawCircle(float x, float y, float r);
void DrawPoly(float horz[], float vert[], float n);

void SetFillStyle(int pattern);
void InitGraphics(void);        // Initialize the drawing surface
void ShutdownGraphics(void);    // Close the drawing surface
void ViewPause(void);           // Wait until a key or the mouse is pressed

#include "graphlib.cpp"

#endif // GRAPHLIB

⌨️ 快捷键说明

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