gn="justify">}; Menu :: show ()
{(int i = 0; i <4; i + +) (i == numAct) [i] -> show (15,1); [i] -> show (0, 7);
} Menu :: onLeft ()
{= (numAct == 0)? 3: (numAct-= 1);
} Menu :: onRight ()
{= (numAct == 3)? 0: (numAct + = 1);
} Menu :: onEnter ()
{[numAct] -> run ();
} Menu :: getmessage (int msg)
{(msg)
{LEFT: ();; RIGHT: ();; ENTER: ();;
}; ();
} :: Menu (int X, int Y)
{= X; = Y; = 0; [0] = &B1; [1] = &B2; [2] = &B3; [3] = &B4; * fin = fopen ("data names.txt", "r"); str [80]; (int i = 0; i <4; i + +)
{(str, 80, fin); [i] -> setparam (x, y, x + strlen (str) -2, y, str); = x + strlen (str) ;
} (fin); ();
} main ()
{(0); (); mnu (20,1);
_setcursortype (_NOCURSOR); (1). getmessage (getch ());
}. txt:. txt: