void read_comb_l(fstream &f) { long y=0; cb_comb c; char cb[6][3][3]; f.open("combinat.dat",ios::in|ios::binary); while(f.read((char*)(&c),sizeof(c))) { y++; clrscr(); c.cpy_cube(cb); display_cb(cb); cout<<"\n\nM O V E S : "<<c.r_moves()<<"\n\n\n"; cout<<y; if(y<=13) delay(200); } f.close(); }
void mouse_cb(int , int ) { int winId = glutGetWindow(); glutSetWindow(winId); display_cb(); }