[C++][Visual Studio]Visual studio 2010 C++0x new feature: nullptr
void Test(int value) { cout << “void Test(int value)”; }
int _tmain(int argc, _TCHAR* argv[]) { Test(NULL); return 0; }
#include “stdafx.h” #include <iostream>
using namespace std;
void Test(int* value) { cout << “void Test(int* value) “; }
void Test(int value) { cout << “void Test(int value) “; }
int _tmain(int argc, _TCHAR* argv[]) { Test(NULL); Test((int*)NULL); Test(nullptr); return 0; }