03-05-2003, 06:12 PM
Well, I don't know C, but in C++ it's done like this:
'new' creates the variable dyamically on the free store.. I think this is what nathan showed you for C. I don't see much point in doing it for simple variables though, it's more use when you want to create new structs, for instance.
Code:
int* pointer;
pointer = new int;
'new' creates the variable dyamically on the free store.. I think this is what nathan showed you for C. I don't see much point in doing it for simple variables though, it's more use when you want to create new structs, for instance.
In a world without walls and doors, who needs Windows and Gates?