I create an Entity object:
#ifndef ENTITY_H
#define ENTITY_H
struct MyEntityObject {
char _entityAuthor;
};
#endif // ENTITY_H
Then I try to set it up and use it:
struct MyEntityObject myEntityObject;
/* MyEntityObject data specification */
strcpy(myEntityObject . _entityAuthor, "Shakespear");
I get this error:
main.cpp:37: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
myEntityObject . _entityAuthor = "Shakespear";
^
What is going on here? What am I getting wrong?