//Start a bip-program!
#include <iostream>
#include "windows.h"
using namespace std;
/*void BeepOne()
{
Beep(500, 500);
}*/
int main()
{
double tal1 = 0, tal2 = 0;
char exit;
while (1)
{
while(1)
{
cout << "---VELKOMMEN TIL JAKOBS BIP MAKER!---\n---DU KAN SKRIVE 'q' TIL SIDST FOR AT QUITTE.---\n";
cout << "Indtast frekvens i hertz: ";
cin >> tal1;
cout << "Indtast længde: ";
cin >> tal2;
if (tal2 > 10000)
{
cout << "For lang tid, det ville tage en abekrig!\n";
break;
}
else
{
Beep(tal1, tal2);
cout << "Vil du slutte? (Skriv q for ja, alt andet for nej.)\n";
cin >> exit;
}
}
}
}
//BeepOne();
}