{
string password;
string correctpassword="Billy";
cout<<"Please enter password."<<endl;
cin>>password;
if (password=correctpassword)
}
else
{
cout<<"Sorry,incorrect password"<<endl;
}
i keep getting these errors:||=== Build: Debug in Password (compiler: GNU GCC Compiler) ===|
D:\My Documents\Password\main.cpp|6|warning: character constant too long for its type [enabled by default]|
D:\My Documents\Password\main.cpp|4|error: expected unqualified-id before '{' token|
D:\My Documents\Password\main.cpp|13|error: expected unqualified-id before 'else'|
||=== Build failed: 2 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
i have tried to debug this program, but i am very new to c++ so i do not know exactly where to look. I am wondering if anyone would be able to help me find the errors and how to correct them in the future. Thanksv