![]() |
|
#1
|
|||
|
|||
compiler errorshaving a lot of trouble with my code... so I'll start with my insert function.
in my insert function: project3.c:22: `node' undeclared (first use in this function) project3.c:22: (Each undeclared identifier is reported only once project3.c:22: for each function it appears in.) project3.c:22: parse error before ' ) ' token project3.c:32: warning: assignment makes pointer from integer without a cast project3.c:37: warning: assignment makes pointer from integer without a cast here is my code: CPP / C++ / C Code:
Last edited by LuciWiz : 28-Oct-2004 at 01:51.
Reason: Please insert your C code between [c] & [/c] tags (not generic [code])
|
|
#2
|
||||
|
||||
|
Hello Newworld. I can help you a bit with your comile errors, but not your logic. I am not sure why the heavy usage of the bitwise xor operator in this. If you get a chance, I would love to hear what this is doing....
The error at line 22, you need to include struct: CPP / C++ / C Code:
The warnings need to be typecast. You are assigning an unsigned long but it is looking for a struct node *. They are the same thing, but it is best to not have any warnings. It also forces you to explicitly think about typecasting. It is not something to do lightly and should only be done when you are sure of what you are doing: CPP / C++ / C Code:
There are other errors as well that you should unearth now... Since I am not sure exactly what you want to do, I will only point out the ones that you asked about. Good luck. __________________
The best damn Sports Blog period. |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help to debug complier errors | nkhambal | C Programming Language | 3 | 04-Oct-2004 09:26 |
| 32 bit compiler needed | meet_raman | C++ Forum | 2 | 24-Jun-2004 04:42 |
| Can somebody look at this and point out any errors to me | soulfly | C Programming Language | 7 | 31-Mar-2004 10:45 |
| a noobish compiler question | Charunks | C++ Forum | 5 | 03-Sep-2003 03:18 |
| i need a free Mac compiler | yerdos | C++ Forum | 1 | 28-Jul-2003 03:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The