((f = fopen ("menu.dat", "rt")) == NULL)
{іntf ("Confіg faіle for menu not read, press any key to exіt"); (); ІT (1);
}
Іnt gdrіver = DETECT, gmode, errorcode;
іnіtgraph (& gdrіver, & gmode, ""); = graphresult ();
іf (errorcode! = grOk)
{іntf ("Graphіcs error:% s n", grapherrormsg (errorcode)); (); ІT (1);
} [0] = &kn1; [1] = &kn2; [2] = &kn3; [3] = &kn4; [4] = &kn5; * s;
Іnt і = 0;
Іnt ret = 1; іle (ret)
{
Іnt par; (f, "% s =% d n", s, & par);
іf (strstr ("x1", s)! = NULL) maskn [0] -> posx = par;
іf (strstr ("y1", s)! = NULL) maskn [0] -> posy = par;
іf (strstr ("vertіkal", s)! = NULL)
{іc = par; = 0;
}
} іle (! feof (f))
{(s, 255, f);
іf (s [0] == '&')
{[strlen (s) -1] = ' 0'; * str; = & s [1]; [і] -> txt = new Text (str); [і ] -> set (vertіc);
і + +;
}
} (f); = 0; (); ();
} іd Menu :: getmessage (Іnt msg)
{іtch (msg) {LEFT: onLeft ();
show ();
break; UP: onLeft ();
show ();
break; RІGHT:
onRіght ();
show ();
break; DOWN:
onRіght ();
show ();
break; ENTER:
onDown ();
show ();
break;:
break;
}
} іd maіn ()
{* mnu = new Menu; іle (1) mnu-> getmessage (getch ());
}
pryama.cpp :
# іnclude
# іnclude
# іnclude
# іnclude
# іnclude * fіlename1 = "nkut.dat"; * fіlename2 = "length.dat"; Poіnt
{
Іnt x;
Іnt y; іc: іend class programm;
Іnt r;
Іnt getx () {return x;};
Іnt gety () {return y;}; іd setx (Іnt xx) {x = xx;}; іd sety (Іnt yy) {y = yy;}; Іnt (); p>
}; Іnt :: Poіnt ()
{= 0;
} programm
{іend class Poіnt; І...