Search:

Type: Posts; User: questionmark

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,002

    Array of classes with classes inside

    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...
  2. it is giving an error a value of type "void*"...

    it is giving an error

    a value of type "void*" cannot be assigned an entity of type "char*"
  3. What is namebuffer ?? is it just the main name...

    What is namebuffer ?? is it just the main name struct??
  4. Thanks :) How would I go about allocating the...

    Thanks :)
    How would I go about allocating the memory would something like this work?


    struct name Names* = (struct name *) malloc(10 * sizeof(struct name));
  5. Allocating memory to an array of struct?

    Do you have to allocate memory(malloc) for an array of structs?
    Example:

    typedef struct{
    char * name;
    }First;

    struct name{
Results 1 to 5 of 5