Need help with C (structures)

Code with C | Programming: Projects & Source Codes Forums C and C++ Need help with C (structures)

This topic contains 4 replies, has 1 voice, and was last updated by  Amit 2 years, 5 months ago.

  • Author
    Posts
  • #11172

    WinMan
    Member

    can anyone see the problem in this line ?

    temp is a structure i get an error when i write it this way. thank you !

  • #11173

    CWC
    Keymaster

    For one, if “temp” is a struct object, and not a pointer, then you should write

    Also, did you allocate memory for the “wd” pointer in temp object?

  • #11174

    Adelaid
    Member

    you really have made this as difficult to answer as you possibly could. When asking questions like this, you need to provide your code. Anyway, see if this explains some of your problems:

  • #11175

    Gallard
    Member

    This is my function : at first factory is set to NULL and size to 0

  • #11176

    Amit
    Member

    i’ve made some changes according to your suggestions please tell me what do you think ?

You must be logged in to reply to this topic.