Page 116 - C Programming
P. 116

#include <stdio.h>


                                  main()


                                       {     char chk;



                                              do{ outport(0x378,0xaa);


                                                     gotoxy(35,13); printf("*0*0*0*0");


                                                     delay(2000);


                                                     outport(0x378,0x55);


                                                     gotoxy(35,13);



                                                     printf("0*0*0*0*");


                                                     delay(2000);


                                                     if(kbhit())


                                                        chk=getch();


                                                      }while(chk!=27);



                                              }
   111   112   113   114   115   116   117   118   119   120   121