Recently started having some issues.
todays my third day of learning C++
the problem im having is that
#include <iostream> //checking new system
using namespace std;
int main()
{
int age = 21;//true value
char gender = 'm';
age++;
cout << "Enter your age:";
cin >> age;
cout << "You are : " << age << "years old and a fat gay cunt" << endl;
Console.Read();
}
this works perfectly when i use CTRL+f5 to run it however when i try to run the exe from the debug folder; the cmd prompt instantly closes after the output gets displayed
It's so fast that i cant even read the output.
I am using viusal studio 2017 with a windows 10 as the OS
also how would i export the exe if i need to send it to someone as a practical joke.
the problem im having is that
#include <iostream> //checking new system
using namespace std;
int main()
{
int age = 21;//true value
char gender = 'm';
age++;
cout << "Enter your age:";
cin >> age;
cout << "You are : " << age << "years old and a fat gay cunt" << endl;
Console.Read();
}
this works perfectly when i use CTRL+f5 to run it however when i try to run the exe from the debug folder; the cmd prompt instantly closes after the output gets displayed
It's so fast that i cant even read the output.
I am using viusal studio 2017 with a windows 10 as the OS
also how would i export the exe if i need to send it to someone as a practical joke.