Page 218 - C Programming
P. 218

do {  textcolor(WHITE);


                                 gotoxy(35,12);


                                 cprintf("oooooooo");



                                 textcolor(RED);


                                 gotoxy(42-index,12);


                                 cprintf("*");


                                 outport(0x378,led[index]);



                                delay(1000);


                                index=index+1;


                                if(index>7) index=0;


                              }while(!kbhit());


                             return(0);


                          }
   213   214   215   216   217   218   219   220   221   222   223