#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
static const int password=1705898;
int main;
{
int secondnumber;
while(true)
cout>>("Enter Password")
cin<<(secondnumber)
if(password = Enter Password)
cout<<"Welcome Lukus";
else
cout<<"Password Rejected";
system ("PAUSE")
return 0;
}
i am getting the error C2447: '{' : missing function header (old-style formal list?) error.
Can anyone tell me where i am going wrong to eliminate this error. thanks