y">}; main ()
{(0); (); mnu (15,1); (1). getmessage (getch ());
} Knopka :: setparam (int xx1, int yy1, int xx2, int yy2, char * sstr)
{= xx1; = yy1; = xx2; = yy2; (str, sstr);
}; Knopka :: show (int tcolor, int bcolor)
{(tcolor); (bcolor); (x1, y1, x2, y2); (); (1,1); ("% s", str);
} knopka1 :: run (void)
{str [80]; * fin = fopen ("button.txt", "r"); (15); (1); (2,7,78,22); (); i = 0; (! feof (fin))
{(str, 80, fin); (1,1 + i); (str); + +;
} (0); (); ();
} knopka2 :: run (void)
{(P_WAIT, "c: windows notepad.exe", "", "data.txt", NULL);
} knopka3 :: run (void)
{(P_WAIT, "c: tc bin bc.exe", "proga by AXE", "kursova.cpp", NULL);
} knopka4 :: run (void)
{(P_WAIT, "kursova.exe", NULL);
} knopka5 :: run (void)
{(0);
} Menu :: onLeft (void)
{= (nomAct == 0)? 4: (nomAct-= 1);
} Menu :: onRight (void)
{= (nomAct == 4)? 0: (nomAct + = 1);
} Menu :: onDown (void)
{[nomAct] -> run ();
} Menu :: show (void)
{
_setcursortype (_NOCURSOR); (int i = 0; i <5; i + +) (i == nomAct) [i] -> show (actTextCol, actBgCol); [i] -> show (pasTextCol, pasBgCol);
} Menu :: getmessage (int msg)
{(msg)
{LEFT: (); ();; RIGHT: (); ();; DOWN: (); ();
}
} :: Menu (int xx, int yy)
{(str, 80, fin); [i] -> setparam (x, i +1, x + strlen (str) -2, i +1, str);
} (fin); ();
}