Miscellany
public text v1 · immutable//Start a bip-program!
#include <iostream>
#include "windows.h"
using namespace std;
/*void BeepOne()
{
Beep(500, 500);
}*/
int main()
{
double tal1 = 0, tal2 = 0;
cout << "---VELKOMMEN TIL JAKOBS BIP MAKER!---\n\n";
while(1)
{
cout << "Indtast frekvens i hertz: ";
cin >> tal1;
cout << "Indtast laengde: ";
cin >> tal2;
if (tal2 > 7500)
{
cout << "For lang tid, det ville tage en abekrig!\n";
}
else
{
Beep(tal1, tal2);
}
}
}