[心得] 6/3 程設 do到高音sol

看板FJU-Stat97A作者 (鮮橙柚)時間15年前 (2010/06/03 15:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> int main(void) { int i; char c; do { c=getch(); if(c=='1') Beep(262,300); if(c=='2') Beep(295,300); if(c=='3') Beep(332,300); if(c=='4') Beep(352,300); if(c=='5') Beep(395,300); if(c=='6') Beep(443,300); if(c=='7') Beep(497,300); if(c=='8') Beep(524,300); if(c=='9') Beep(588,300); if(c=='a') Beep(660,300); if(c=='s') Beep(699,300); if(c=='d') Beep(785,300); }while(c!='z'); system("pause"); return(0); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.162.60
文章代碼(AID): #1C1rgynP (FJU-Stat97A)