这个只是天赋,就像唱歌一样!有人能成为歌唱家,有人再努力还是五音不全!
★★★★★为人民服务★★★★★
#include <windows.h> #define D1 523 #define D2 578 #define D3 659 #define D4 698 #define D5 784 #define D6 880 #define D7 988 #define G1 1046 int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd) { Beep(D6,600); Beep(D5,200); Beep(D3,400); Beep(D5,400); Beep(G1,400); Beep(D6,200); Beep(D5,200); Beep(D6,800); return 0; }没那么闲 花5分钟写开头的一句还是没问题的
#include <windows.h> #define D1 523 #define D2 578 #define D3 659 #define D4 698 #define D5 784 #define D6 880 #define D7 988 #define G1 1046 int main(void) { Beep(D6,600); Beep(D5,200); Beep(D3,400); Beep(D5,400); Beep(G1,400); Beep(D6,200); Beep(D5,200); Beep(D6,800); return 0; }