topical media & game development
professional-program-16-Conversions-Pointer-PointerTest.c
? /
professional-program-16-Conversions-Pointer-PointerTest.c
include <PointerBool.h>
include <SpreadsheetCell.h>
include <iostream>
using namespace std;
int main(int argc, char** argv)
{
Pointer<SpreadsheetCell> smartCell(new SpreadsheetCell);
smartCell->set(5);
if (smartCell != NULL) {
cout << "not NULL!\n";
}
if (smartCell) {
cout << "not NULL!\n";
}
if (!smartCell) {
cout << "NULL\n";
}
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.