FSA
Erfahrenes Mitglied
Hallo ich habe mir C++ ein programm was keine sinn hat jedenfalls möchte ich das programm osfort beenden in einer Funktion im Header!
Main.cpp:
testfunktion.h
So nun möchte ich das testfunktion mir mein programm beendet wie mache ich das?
Das beep ist nur zum test ob das programm weiterläuft oder nicht
Danke
Main.cpp:
C++:
#include <windows.h>
#include "testfunktion.h"
int main()
{
testfunktion();
Beep(200,200);
return 0;
}
C++:
int testfunktion()
{
return 0;
}
So nun möchte ich das testfunktion mir mein programm beendet wie mache ich das?
Das beep ist nur zum test ob das programm weiterläuft oder nicht
Danke
Zuletzt bearbeitet von einem Moderator: