PDA

View Full Version : C need help again plz


neyugn
2 Nov 2004, 5:12am
gettin warnings plz need help and i dont get how to changing my sort to be using ptrs. dont really get how to use ptrs. the warnings are
d:\longs c++ labs\bg_lab_4\bg_lab4.c(112) : warning C4047: 'function' : 'int ** ' differs in levels of indirection from 'int *'
d:\longs c++ labs\bg_lab_4\bg_lab4.c(112) : warning C4024: 'allocateAry' : different types for formal and actual parameter 2
d:\longs c++ labs\bg_lab_4\bg_lab4.c(109) : warning C4700: local variable 'ptrarraySize' used without having been initialized
d:\longs c++ labs\bg_lab_4\bg_lab4.c(181) : warning C4700: local variable 'sizearray' used without having been initialized
d:\longs c++ labs\bg_lab_4\bg_lab4.c(237) : warning C4700: local variable 'k' used without having been initialized

and ill put my code into the zip file

mmonnin
2 Nov 2004, 11:35am
Warnings are ok. It should still compile.

neyugn
2 Nov 2004, 7:46pm
but it doesnt still compile and it crashes :(

TheBaron
2 Nov 2004, 8:19pm
it looks like you're passing a function a dereferenced pointer. something along those lines