ok, I searched and read the manual
I did what it said to do:
struct Weapon {
int damage;
int price;
String name;
};
Weapon sword;
sword.damage = 10;
sword.price = 50;
sword.name = "Fine sword";
And then did the rest
why does it say unexepted "sword?"
Assigning values to struct members MUST be within functions, so move the "sword.=*;" lines into a function to initialise teh values.
thanks it worked