Introduction to the _c++ program design of NetEase Cloud Classroom (top) _ 2nd unit: Painting the Turquoise –ege Graphics Library _ Section 2nd: A simple Ege Program
#ifndef _graphics_h_#define _graphics_h_#ifndef __cplusplus#error You must use C + + compiler, or you need filename with '. C PP ' suffix#endif#include "ege.h" using namespace Ege; #endif # include <iostream> #include <graphics.h>void Main () {Initgraph (640, 480);//Create drawing window outtextxy (+, "Aloha");//output string to the right in the specified coordinates line (10, 10, 400, 400);// In the specified coordinate output segment Ege::getch ();//wait for input character closegraph ();//close drawing window}
Introduction to the _c++ program design of NetEase Cloud Classroom (top) _ 2nd unit: Painting the Turquoise –ege Graphics Library _ Section 2nd: A simple Ege Program