#include #include #include int main(){ int i,c; int t;//一音の時間 int a[]={ //1:休, 0:終 523,1,523,494,440,1,440,1 ,392,1,392,349,330,1 ,330,349,392,1 ,262,262,294,294,349,349,330,330,1,294,262 ,1,1 ,523,1,523,440,494,440,392,1 ,523,587,523,440,494,440,392,1 ,523,1,523,494,440,1,587,587,494,1,440,392 ,1,1,440,494 ,523,1,523,494,440,1,440,1 ,392,1,392,349,330,1 ,330,349,392,1, 262,262,294,294,349,349,330,330,1,294,262 ,0}; printf("一音の時間を設定(100-500くらい) >> "); scanf("%d",&t); for(i=0;c=a[i],c!=0;i++)if(c==1)Sleep(t);else Beep(c,t); return 0; }