I'm not giving up, that was frustration talking...I'll check the FAQ thank you, I think the problem is actually that I'm not capturing the values in the read function. When the function exits the...
Type: Posts; User: rasmith1955
I'm not giving up, that was frustration talking...I'll check the FAQ thank you, I think the problem is actually that I'm not capturing the values in the read function. When the function exits the...
I give up, I think I will write any additions to the courseList to a temp file and reread them into memory before I display them. I can't get past the bad ptr error.
Course_ptr = (Stud1_ptr->CourseList);
This works! Getting closer....
With the addition of a pointer on the Course struct:
typedef struct Course {
char Number [NumSize + 1]; /*Course Number*/
char Section [SecSize + 1]; /*Course Section*/
int Units; /*Course...
I'll try your suggestion quzah, thank you
That does give a runtime error in VC++, bad pointer....I'm lost again...oh well
This does not give an error:
printf ("Number is %s\n", Stud1_ptr->CourseList->Number);
Now why does it return null? Continuing...
trying to declare a new pointer to work with gives a compiler error:
Course_T *C_ptr;
C_ptr = CourseList;
Trying to decale a pointer on the fly gives a "Start undeclared ":
Start =...
Thanks for the input, actually, I see now that CourseList is already a pointer to the list.... I'm still confused. But will post what I try and what works or doesn't. This is a test program so the...
I have a linked list inside an array of structs:
typedef struct Course {
char Number [NumSize + 1];
char Section [SecSize + 1];
int Units;
struct Course *Next;
} Course_T;