Page 101 - C Programming
P. 101

ตัวอย่างที่ 7-9 โปรแกรมส่งค่าผ่านฟังก์ชันแบบหลายค่า




                       #include < stdlib.h>



                       #include <stdio.h>


                       char show(char x,char y);


                       main()


                        { show(35,12);


                           getch();


                        }



                       char show(char x,char y)


                        { do{ gotoxy(x,y);


                                 textcolor(random(16)|128);


                                 cprintf("TITANIC");


                                 delay(1000);


                               }while(!kbhit());


                         }
   96   97   98   99   100   101   102   103   104   105   106