New Posts  All Forums:Forum Nav:

COP 2220 Help

post #1 of 2
Thread Starter 
Never mind, due time is here and I am over it, thanks anyway.
Edited by bioniccrackmonk - 7/1/08 at 7:01pm
post #2 of 2
It's hard to read the way you posted it. Use [ code][/code] tags to keep the formatting, separate the files, and post the contents of myheader.h and I can help you better.

From a quick look, though, I see a few problems. buildList() is hardcoded to return 0 even though it supposedly returns a NODE *. It also never uses fileID. insertNode() makes a node, but it is not inserted into the list anywhere. It seems that the data is char data, but it is getting printed as an int with 3 places shown.

Warnings can be a good way to catch errors. If you compile with "gcc -ansi -W -Wall -c *.c" you can enable warnings.
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming