I have an array of (Student)classes created in Manager.h, which contains a new instance of class Name (name),(in Student.h)How would I go about accessing the SetFirstName method in Name.cpp if I was...
Type: Posts; User: questionmark
I have an array of (Student)classes created in Manager.h, which contains a new instance of class Name (name),(in Student.h)How would I go about accessing the SetFirstName method in Name.cpp if I was...
it is giving an error
a value of type "void*" cannot be assigned an entity of type "char*"
What is namebuffer ?? is it just the main name struct??
Thanks :)
How would I go about allocating the memory would something like this work?
struct name Names* = (struct name *) malloc(10 * sizeof(struct name));
Do you have to allocate memory(malloc) for an array of structs?
Example:
typedef struct{
char * name;
}First;
struct name{