The problem is that instead of the comparison operator you are using the assignment operator
if(subscription = false)
{
cout << "We're sorry you don't want our services.";
//this is where i want the program to stop, after it outputs that line.
}
else if(subscription = true)
{
cout << "\nPlease enter your first and last name. ";
}
In thsi expression of the if statement
if(subscription = false)
you assigned false to subscription and the expression is also equal to false. As the result the compound statement of this if statement is not executed.
Change the code as
if(subscription == false)
{
cout << "We're sorry you don't want our services.";
//this is where i want the program to stop, after it outputs that line.
}
else if(subscription == true)
{
cout << "\nPlease enter your first and last name. ";
}
It would be even better if you would write
if( subscription )
{
cout << "\nPlease enter your first and last name. ";
}
else
{
cout << "We're sorry you don't want our services.";
// here you can place the return statement
}