functions sound/delay/nosound in dos.h for c/c++

后端 未结 3 974
小蘑菇
小蘑菇 2020-12-22 03:21

How can I get a version of language C/C++(downloaded??) where the functions sound, nosound, delay are present in the library DOS.H? For example it doesn\'t exist in the ver

3条回答
  •  鱼传尺愫
    2020-12-22 04:04

    In Windows programs you may use win32 functions:

    • Sleep() as a replacement for delay()
    • Beep() as a replacement for a combination of sound() + delay() + nosound().

提交回复
热议问题