With Jonathan's help I was able to pass all tests on VCC and LINUX (Thank you Jonathan!)
But now I'm having trouble compiling in borland.
I compiled with the command
bcc32 main.c ciol.c (I hope this is the right command)
But I got a whole bunch of "no prototype" warnings:
call to function "io_init" with no protype in function main
or
call to function "test 1" with no protype in function main
I've included the .h file in both main and ciol.c
Anyone has any idea what's going on?
Sunday, October 11, 2009
Saturday, October 10, 2009
OOP344 Assignment progress
My program has successfully passed all tests except for 2:
Test 9.14:
Complaint about curpos. It says that curpos should be at 20, mine returned 19. But fieldlen of 20 is passed to io_edit. Shouldn't curpos be 1 less than fieldlen?
Anyone else having this problem?
Test 9.23:
Complaint about curpos and offset. It seems that curpos and offset should not be moved in this function. But IsTextEditor is set to false we should be able to move curpos and offset as long as the string returned is the orginal one and not the modified one.
Any thoughts on that?
Test 9.14:
Complaint about curpos. It says that curpos should be at 20, mine returned 19. But fieldlen of 20 is passed to io_edit. Shouldn't curpos be 1 less than fieldlen?
Anyone else having this problem?
Test 9.23:
Complaint about curpos and offset. It seems that curpos and offset should not be moved in this function. But IsTextEditor is set to false we should be able to move curpos and offset as long as the string returned is the orginal one and not the modified one.
Any thoughts on that?
Subscribe to:
Posts (Atom)