Quick solve

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.
Thank you very much.
: fatal error C1075: end of file found before the left brace '{'
You're missing a closing brace.
Topic archived. No new replies allowed.