how did you solve phase_
3, please give me some hints i am really stuck on finding the first integer in phase_3
Type: Posts; User: warsame
how did you solve phase_
3, please give me some hints i am really stuck on finding the first integer in phase_3
i find your method very useful, if i want to call this on a pointer that has already been initialized with
one struct will this still work?
also i have some basic scanf function that get called...
does anyone have an example using a struct of arrays that have been
initialized? im still having trouble grasping this concept. i understand now why i could not free memory that was never allocated...
That was a typo on the two included header files, i have a employee.h file that has all my functions inside. i want to just include that header file in my .c file where my main is called from. Why...
Yes that is exactly what i want to do. is have a pointer that points to one struct employee that has been initialized with all of its key members. Then when my add_employee function is called by the...
i have actually solved this problem without using malloc and reaalloc, i know want to use these two and ignore file system reading for the moment, i am trying to learn the machine architecture of the...
ITS SEEMS I HAVE CONFUSED MYSELF,
i have posted all of my code here. i simply want to have a pointer to a struct that
will allocate space when called accordingly and a temporary struct pointer...
so if i dont use a struct array but instead create something like this
struct employee my_employee = {
"Johnson, larry", 233333.3, "December, 4th 1999
};
struct employee...
i am using malloc because i want to only create enough space for just
one struct everytime add_employee is called. as far as using a struct employee
pointer to point to my array of structs the...
I have an array of structs created with an initial size and filled with the members of the struct tag. as such
struct employee{
char fullname[30];
float salary;
char fulldate[40];
};