how do you make a high beep, then a low beep?
My compiler doesn't have <windows.h>, but it does have <dos.h>.
Thanks, Cool-August.
how do you make a high beep, then a low beep?
My compiler doesn't have <windows.h>, but it does have <dos.h>.
Thanks, Cool-August.
Apparently <dos.h> has a sound() function. I'm pretty sure it takes one parameter: an integer for frequency. Then, just wait and when your done with, use nosound(). Just a quick Google though
- SirCrono6
From C to shining C++!
Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
- Bubba
IDE and Compiler - Code::Blocks with MinGW
Operating System - Windows XP Professional x64 Edition
i don't feel like looking it up, but i think the sound function (if it exists) takes 2 paramters. one is the frequency like sir crono said, and the other is the duration in microseconds
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
My compiler doesn't have <windows.h>, but it does have <dos.h>.
So why not download a new one that does have windows.h? Look it's really simple
go to this link :
http://www.bloodshed.net/devcpp.html
It's only 8MB so has a reasonable download time even if you have a 56k dial up connection. And it's as simple as that.
You mean something like this?
That would make a low beep for 1 second right?Code:sound(1000,4000);
I went to:
http://www.bloodshed.net/devcpp.html
if asks for a mirror. What is a mirror?