When working with pointers when I use separate files (and sometimes when I use 1 file) I get:
error C2065: 'NULL' : undeclared identifier
I did some searching but none of these worked:
Code:#define NULLCode:#define NULL 0Code:#define NULL ((void *) 0)Code:#ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endifIn fact, compiling using any these usually crashes the program.Code:#include <cstdlib>