Oh thank you lord 1!!:D I figured it out. Thanks Hammer ! I fixed it by making a global variable position P in the header and used the following: P=First(units[low]->IDs after the InsertInOrder...
Type: Posts; User: bentles
Oh thank you lord 1!!:D I figured it out. Thanks Hammer ! I fixed it by making a global variable position P in the header and used the following: P=First(units[low]->IDs after the InsertInOrder...
....doesnt fix the problem tho..
I dont even need the p variable, its not serving any purpose whatsoever..
..but if i remove that if statement, then the list is just going to be emptied every time that function is called isn't it?
another thing is that the file works if i remove the last one of the '4' operations, which adds a student, which suggests the problem lies in the add_student function.
here
This is the test data so i cant see how it could be the size of the unit_name array thats the problem:
1
a
1
b
1
c
6
a
The code works fine and there doesnt seem to be any problems whatsoever, but when using an input test file, it gives a segmentation fault. There are two input test files, one works, but i cant get...
I know the program looks dodgy, but it works...well... mostly:(
list.c...
main.c....
there are 4 files: a header file, a list file, a main file and a another file doing the operations:
Hi, ive got a program that runs fine except when I run an input test file to compare differences with an output test file. It then gives me a segmentation fault. What are some of the causes of...