printf not working

Hello the base class variable is not changing as it should in this program, I have been advised this is because cout operator << is booling the value down to true on overload so I have tried printf instead and the program compiles with out any error but my printf function produces no output(line 19 in header file, line 222 in main), please advise as to why?

headers
http://pastebin.com/2muQJBPX

main
http://pastebin.com/apzdSb9Q
Last edited on
closed account (48T7M4Gy)
Please post your code here, between code tags, use <> button on the right.
1
2
3
4
5
6
Part * pPart = 0;
...
while (1)
{
   ...
   pPart->print();


You use a pointer without allocating it. Better to use a static variable
Topic archived. No new replies allowed.