标签:int window one delay test windows bee pre unsigned
#include <windows.h> int main() { while (true) { unsigned tone[] = { 523, 523, 578, 659, 659, 659, 0, 659, 578, 523, 494, 880, 784, 0, 784, 880, 988, 1046, 659, 659, 0, 1046, 988, 1046, 988, 659, 784, 0, 784, 880, 1046, 880, 880, 0, 880, 784, 659, 784, 659, 578, 523, 0, 440, 523, 659, 578, 578, 523, 578, 784, 523, 578, 0 }; unsigned delay[] = { 300, 300, 300, 600, 300, 300, 150, 300, 300, 300, 600, 300, 300, 150, 400, 300, 300, 600, 300, 300, 150, 300, 300, 300, 600, 300, 300, 150, 300, 300, 300, 600, 300, 150, 400, 300, 300, 300, 400, 300, 400, 150, 300, 300, 300, 300, 300, 300, 300, 600, 300, 300, 150 }; for (int i = 0; i < 53; i++) { Beep(tone[i], delay[i]); } } }
标签:int window one delay test windows bee pre unsigned
原文地址:https://www.cnblogs.com/hellovenus/p/8990807.html