int points = 0;
string website_name;
string hi;
cout << "What is this website name: ;
cin >> website_name;
if(website_name == "cplusplus")
{
cout << "Good job, you have earned a point";
cout << "Current points: " << points + 1;
}
cout << "Please write the word 'hi' : ";
cin >> hi;
if(hi == "hi")
{
cout << "Good job, you have earned a point";
cout << "Current points: " << points + 1;
}
Aight, The first one the points goes to 1, and when you go to the next if statement the "hi" it remains 1. I want the points to come 2, Obviously if you got the answers right.