Program instantly closing [migrated]
- by Ben Clayton
I made this program and when I compiled it there were no errors but the program just instantly closed, any answers would be appreciated.
#include <iostream> //Main commands
#include <string> // String commands
#include <windows.h> // Sleep
using namespace std;
int main ()
{
//Declaring variables
float a;
bool end;
…