Please tell me what i am doing wrong here....It is driving me crazy.
#include <iostream>
#include <string>
#define frz system("pause");
using namespace std;
int main ()
{
string password = "zing";
cout << "please enter password!" << endl;
cin >> password;
if (password == "zing");
{
cout << "Congrats on completeing your first goal." << endl;
}
else
{
cout << "password was incorrect please try again."endl;
frz;
return 0;
}
if (password == "zing");
Get rid of that semicolon.
: fatal error C1075: end of file found before the left brace '{'
You're missing a closing brace.