Segmentation Fault with PTR conversion
Alright, Im using the g++ compiler on a rh9.0 linux machine. The main question is I converted my code to use pointers instead of stack memory.
I get the value and set the value by just calling *x with the asterisk. It seems to work but after a bit it gives a segfault and shuts down. Does anyone know what could cause this. It seems to mostly happen in for loops. Your help would be greatly appreciated. Thanks.
My ForLoop Syntax for one of them:
for(*x=0;GetUser(*x-1)->next != NULL;*x++)