So as I said before I got to write this program-it should beep when the user enters values for time and frequency. I been looking at what I done before, track calcultaor and simple beep program and add the the two together.
so far i have came up with this
- Code: Select all
#include <iostream> //Input Output header for cout
#include <windows.h> //Windows header for beep
#define BYTE 8 //Constant for 8-bits in a byte
#define KByte 1024 //Constant for Kbyte
#define beep 440-659
using namespace std; //Use standard Library
int main () //Main program begins here
{
int frequency, time;
cout<<"Please enter the frequency value between 440 to 659\n"
#define beep 400-659 should mean that it will beep between them freqeuncies. Could anyone tell me if I am heading in the right direction please.
