标签:nbsp code logs ges .com com c++ stream iostream
#include<iostream> using namespace std; void test(int **p) { int a=2; *p=&a; cout<<*p<<" "<<**p<<endl; } int main(void) { int *p=NULL; cout<<&p<<endl; test(&p); cout<<p<<endl; if(p!=NULL) cout<<"指针p不为NULL"<<endl; cout<<p<<endl; cout<<"开心就好"<<endl; return 0; }
标签:nbsp code logs ges .com com c++ stream iostream
原文地址:http://www.cnblogs.com/xiong63/p/6830712.html