) del_balls=
(max_x> max_y? max_x: max_y); (app_balls + del_balls> max_x * max_y) {_balls=max_x * max_y-del_balls;}} GetInfo () {* in; (in=fopen(«leaders.dat»,«rb»)){(&gametype,sizeof(int),1,in);(&max_x,sizeof(int),1,in);(&max_y,sizeof(int),1,in);(&app_balls,sizeof(int),1,in);(&del_balls,sizeof(int),1,in);(int i=0; i <3; i + +) (& leaders [i], sizeof (info), 1, in); (in);} {= 0; _x=9; max_y=9; _balls=3; del_balls =5; (int i=0; i <3; i + +) [i]=null_leader;}} WriteInfo () {* out; (out=fopen(«leaders.dat»,«wb»)){(&gametype,sizeof(int),1,out);(&max_x,sizeof(int),1,out);(&max_y,sizeof(int),1,out);(&app_balls,sizeof(int),1,out);(&del_balls,sizeof(int),1,out);(int i=0; i <3; i + +) (& leaders [i], sizeof (info), 1, out); (out);}}