编译原理上机作业 解析简单画图语言 画图语言: origin is (200, 300); -- 设置原点的偏移量 rot is pi/6; -- 设置旋转角度 scale is (2, 1); -- 设置横、纵坐标比例 for T from 0 to 200 step 1 draw (t, 0); -- 画横坐标 for T from 0 to 180 step 1 draw (0, t); -- 画纵坐标 for T from 0 to 150 step 1 draw (t, t); --
#include // Header File For Windows #include // Header File For The OpenGL32 Library #include // Header File For The GLu32 Library #include // Header File For The Glaux Library #include HDC hDC=NULL; // Private GDI Device Context HGLRC hRC=NULL
#include // Header File For Windows #include // Header File For The OpenGL32 Library #include // Header File For The GLu32 Library #include // Header File For The Glaux Library #include HDC hDC=NULL; // Private GDI Device Context HGLRC hRC=NULL