"OPTIONS"); [20] = {0}; (0,0,1); setcolor (1); (buf, "Max rand num:% d", randmax); outtextxy (320,200, buf); (buf, "Similar i/o files:% s", (bool_so? "yes": "no")); (320,280, buf); (280,215 + opt_sel * 80,360,215 + opt_sel * 80); key = getch (); = 0; (key) {27: menu (); return; 75: dir -; break; 77: dir + +; break; 72: opt_sel -; break; 80: opt_sel + +; break;} (opt_sel) {0: if (randmax> 20) dir * = 10; randmax + = dir; break; 1: if (dir) bool_so = 1-bool_so; break;
} (randmax <1) randmax = 1; else if (randmax> 100) randmax = 99; ();
} about () {_note (); (0,0,2); {[30] = {0}; = 0; (! Feof (f)) {[0] = 0; (buf, 30, f); [strlen (buf) -1] = 0; (320,160 + i * 30, buf); (strlen (buf)) i + +;
} (230,160 + i * 30,410,160 + i * 30);
} {error [50] = {0}; (error, "Cannot open "% s "", gpath_1); (320,160, error);
} (); (f); ();
} menu () {_set = 0; (menu_set <0) menu_set = 3; if (menu_set> 3) {27: exit (0); break; 13: switch (menu_set) {0: start (); return; 1: options (); return; 2: about (); return; 3: exit (0); p>
} break; 72: menu_set -; break; 80: menu_set + +; break;} ();
}. CPP
# include "C: Borlandc Progs kurs INCLUDE.H" main () {(); k = DETECT, m; (& k, & m, "" ;); ();
}