yup pretty obvious but somehow i did't notice that after spending about 15 minutes looking at that function. Althought in my defence, im new to c and i would of assumed that c would have noticed...
Type: Posts; User: RR1
yup pretty obvious but somehow i did't notice that after spending about 15 minutes looking at that function. Althought in my defence, im new to c and i would of assumed that c would have noticed...
I'm trying to write the delete function of a stack class, and i'm getting the error:
error C2440: '=' : cannot convert from 'struct dataNode *' to 'struct Stack::deleteRec::dateNode *'
...
It worked, although I don't understand why. I was taught that all the standard libaries use the #ifndef pre processor directive to prevent this sort of problem.
Anyway, thanks for the help.
I am writting a small program in VC++ 6, which has a class and a driver to test it. It compiles ok, but when I try to build it, i get 14 identical errors for each function in the class. The error...