in the code below, i get the following compile error at the last line.
C:\My Courses\Cs133u\chapter5\Cryptography\Cryptography.cpp(32) : error C2106: '=' : left operand must be l-value
if i change char message[27] to *message, it compiles, but the program commits an illegal act at runtime. thats why i used a char array in the first place (so i could specify the size). why am i getting this compile time error?
void main()
{
char password[11];
char verify[11];
char message[27] = "Enter your password ";
getPassword(password, verify, message);
message = "Enter your password again ";
C:\My Courses\Cs133u\chapter5\Cryptography\Cryptography.cpp(32) : error C2106: '=' : left operand must be l-value
if i change char message[27] to *message, it compiles, but the program commits an illegal act at runtime. thats why i used a char array in the first place (so i could specify the size). why am i getting this compile time error?
void main()
{
char password[11];
char verify[11];
char message[27] = "Enter your password ";
getPassword(password, verify, message);
message = "Enter your password again ";