请看NULL的定义:
#if !defined(__cplusplus)
#define NULL ((void*)0)
#else
#define NULL 0
#endif
if ( p != NULL )
if ( p != 0 )
if ( p )
c++教主推荐用0
http://bbs.51cto.com/thread-423115-1.html
#if !defined(__cplusplus)
#define NULL ((void*)0)
#else
#define NULL 0
#endif
if ( p != NULL )
if ( p != 0 )
if ( p )
c++教主推荐用0
http://bbs.51cto.com/thread-423115-1.html