I should mention that I am on Turbo C++ (yes the old one) because it is required by my school.
I have a structure like this:
struct move{
int power;
int pp;
char name[10];
};
When I try to make a new variable if I do this:
move tackle;
tackle.pp = 10;
tackle.power = 20;
tackle.name = "tackle";
I get an error as:
Error NONAME00.CPP 11: Lvalue required
But this works:
move tackle = {20, 10, "tackle"}
it works.
What am I doing wrong?
P.S. line 11 is the tackle.name = "tackle", sorry if I was unclear earlier.