reate the file - Low. txt ";. get ();;
} (i = 0; i GetX () << ; ","
< GetY () <<")" <
// graphic's section (); (i = 0; i Show (1);. get (); (); (i = 0; i Show (); (i = 0; i Show () ;. Show (Line :: RECTANGLE);. Show (Line :: LINE);. get (); ();
} _RESULT App :: SwitchToGraphic ()
{gdriver = DETECT, gmode, errorcode; (& gdriver, & gmode, ""); = graphresult (); (errorcode! = grOk) GRAPH_FAILURE; GRAPH_OK;
} App :: SwitchToText ()
{();
}
// --------------- Line ---------------- Line :: Show ( FIGURE figure)
{(figure) {RECTANGLE: (LIGHTGREEN); (A-> GetX (), A-> GetY (), B-> GetX (), B-> ; GetY ());; LINE: (LIGHTBLUE); (A-> GetX (), A-> GetY (), B-> GetX (), B-> GetY ());; b>
};
}
Додаток Б
Лістінгі програми меню.
# include
# include
# include
# include
# include
# include
# define LEFT 75
# define RIGHT 77
# define ENTER 13
# define UP 72
# define DOWN 80char * filename = "points. txt "; char * filename2 =" diagonal. txt "; char * filename3 =" kurs. cpp "; char * filename4 =" up. txt "; char * filename5 =" low. txt "; Text
{: dx; dy; style; color; size;: str [80]; (char * s); Length () {return strlen (str);}; set (int a, int b, int c, int d, int e); show ();
}; :: Text (char * s)
{(str, s);
} Text :: set (int a, int b, int c, int d, int e)
{= a; = b; = c; = d; = e;
} Text :: show ()
{(color); (style, HORIZ_DIR, size); (dx, dy, str);
} button {x1; y1; x2; y2; color;: posx; posy; * txt; show (int act); void run (void) = 0; set (int c );
~ button () {delete txt;};
}; button :: posx = 0; button :: posy = 0; button :: set (int c)
{= 9; ln = txt-> ...