I tried to compile but g++ reported "error: 'null' was not in this scope". Do I need to #include something?
Also, I was directed to Bjarne Stroustrup's (creator of C++) website at http://www2.research.att.com/~bs/bs_faq2.html#null where he said "In C++, the definition of NULL is 0, so there is only an aesthetic difference. I prefer to avoid macros, so I use 0" which sounds like NULL is ok in C++...?
Sorry for posting in the wrong forum; I thought it was Qt thing instead of a C++ thing.
Bookmarks