Home > Back-end >  C + +
C + +

Time:09-16

How to join music in c + +, code

CodePudding user response:

https://blog.csdn.net/weixin_34080951/article/details/93248884? Ops_request_misc=& amp; Request_id=& amp; Biz_id=102 & amp; E5 utm_term=c + + % % % % 8 a A0 E5 % % 85% A5 E9 B9 E4 B3 9 f % % % % % 90 & amp; Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ blog ~ sobaiduweb ~ default - 0-93248884

CodePudding user response:

 # include 
#include
532//# define n1 do 1 sound
# define D 250//define D 1
Int main () {
Beep (n1, D);
Sleep (D);
Beep (n1, D);
Return 0;
}

Note: beep function to use # include & lt; Windows. H>
  • Related