Page 217 - C Programming
P. 217

ตัวอย่างที่ 17.3 โปรแกรมเลื่อนข้อมูล 1 บิตจากขวาไปซ้าย






                #include <dos.h>


                #include <conio.h>


                #include <stdio.h>



                main()


                { char index=0;


                   char led[8]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};


                   clrscr();


                   gotoxy(30,9);   printf("***********************");


                   gotoxy(30,10); printf("BORLAND C++ FOR CONTROL");



                   gotoxy(30,11); printf("***********************");
   212   213   214   215   216   217   218   219   220   221   222