I’m Trying To Use The sound(), delay(), nosound() Function In C++ But It’s Not Working

  c++

Code:

#include <dos.h>
#include <conio.h>

void coi(int cao, int thap)
{
    do {
        sound(cao); delay(400); sound(thap); delay(400);
    } while (!kbhit());
    nosound();
}

For some reason, i couldn’t use the sound(), delay(), nosound() function even though i did included the dos.h library. Please help me out with this problem!

Source: Windows Questions C++

LEAVE A COMMENT