- C言語なら俺に聞け
833 :デフォルトの名無しさん[sage]:2014/07/28(月) 01:49:11.29 ID:QMz/AUC4 - #include <stdio.h>
#include <windows.h> #include <conio.h> #include <stdlib.h> #define N 100 #define SLEEP 108 int main() { int i = N; int j; int freq[8] = {494, 554, 440, 220, 330}; while(i--) { for(j=0; j<5; j++) { Beep( freq[j], 108*7); Sleep(SLEEP*1); } Sleep(SLEEP*(rand()%8+1)); } return 0; }
|