Finnaly, it builds (again) now to test and see if it all works. Thank you for the help.
Type: Posts; User: pears0
Finnaly, it builds (again) now to test and see if it all works. Thank you for the help.
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...
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)????
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...
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...
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...
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...
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.
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...