Attached: C language Console Snake 1

Source: Internet
Author: User

Questions about the PlaySound function not playing music.

1, the music format must be . wav , and add the path can be used absolute path, relative path, and add the file name of the resource to replace (to ensure that the path name is correct).

2, a start I use Codeblocks, compile error:undefined reference to ' [email protected] '

Workaround:

  Project -- bulid options point linker settings Click Add winmm after OK

3, with the vs2010 when the path ran correctly after the beep, and did not play music

Workaround:

(1) Modifying the character set: Changing the Unicode character set to use multibyte character sets

(2) before the first parameter of the PlaySound function is added without modifying the character set, L

Attached: C language Console Snake 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.