I changed a few things in it.
Code:
#include <iostream>
using namespace std;
int main()
{
int m;
int sub;
int sub2;
cout<<"If you type s subtraction will start: ";
cin>>m;
if (m == 1) {
cout<<"Please enter your first number: ";
cin>>sub;
cout<<"Please enter your second number now: ";
cin>>sub2;
cout<<"The results are "<<sub - sub2 <<"\n;
cin.ignore();
}
else {
cout<<"You Messed Up";
}
cin.get();
}
it stilll doesn't work and here is the error msg I got
Code:
syntax error before `.' token
In function `int main()':
missing terminating " character