Search:

Type: Posts; User: pears0

Search: Search took 0.00 seconds.

  1. Finnaly, it builds (again) now to test and see if...

    Finnaly, it builds (again) now to test and see if it all works. Thank you for the help.
  2. ok, now i get a new error with tmp =...

    ok, now i get a new error with

    tmp = realloc(entry, sizeof(struct event) * (num_entries + 1));

    the error is:
    error C2440: '=' : cannot convert from 'void *' to 'event *'

    Think this might be...
  3. OK, I might sound a bit like a dumb ass now, but...

    OK, I might sound a bit like a dumb ass now, but how do i then access each entry, just to work out if i need to change my code. is it :

    entry[entry_num].(struct attribute name)????
  4. No need to tell me, any 1 on my course, or even...

    No need to tell me, any 1 on my course, or even my mates that can program, I'm getting narked off, cos this is yet another program I can't compleate cos of my lecturers idiocy and not my programming...
  5. Salme, I have no choice in the matter, my lecture...

    Salme, I have no choice in the matter, my lecture is been alkward and will only let us use vis stdio .net. Dont need to tell me, u need to tell him, and he wont listen.

    Istem, that code throws up...
  6. This would not be true for an array. If the array...

    This would not be true for an array. If the array is set asside using a pointer, it is all the more important to allocate the space in memory, it can run out fast when the computer decideds to make...
  7. Replies
    10
    Views
    1,617

    what they were trying to get at with the int i;...

    what they were trying to get at with the int i; followed by i++; is that it will just use the value that was in that space of memory befor it was allocated as i. This can cause errors in your...
  8. Replies
    3
    Views
    959

    The first number is the row and the second number...

    The first number is the row and the second number is the columb. How everan array always starts from 0, so array [2][1] would point to the element in the third row and second columb. Hope this helps.
  9. Dynamic memory alloction for my array of struct

    OK, new to the forums, and I have a problem with allocating memory for my struct 1 array cell at a time. Yes it has to be this way, stupid uni specifications, and is the last thing I need to get...
Results 1 to 9 of 9