Hi! I'm creating a list that worked great! But now i would like to add imaginary numbers to my singel linked list as well, so i created another struct which gives me some problems. Anyone know what it is?
I have deleted away a lot of lines just to make it easier to read, i have as well commented it away in originally code for now. What i think i do wrong is either this line "insert(list,value);" or "list->data.real > value.real"
Yeah sorry i forgot to mention that. It gives me Compile errors:
I have everything in different files (in my originally text) but when i copy the text above it seems to work. So i guess it must be something that I'm including wrong then :/ Have been trying to fix this for last 3 hours and since i had never used two different structs i thought it had to be something wrong whit that.
Sorry :( Will try to see what i have done in my other 3 files and come back later maybe then.