一个有趣的C++程序欢迎高手来探讨下!
											
	
		
			
		
	
 程序代码:
程序代码:#include <iostream>
using namespace std;
int  main()
{
    int *p1=new int;
    *p1=12;
    int *p2=new int;
     *p2=12;
    cout<<"(赋予p1指针的值)"<<*p1<<endl;
        cout<<"(12也有地址?)"<<p1<<"(地址是否一样)"<<&p1<<endl;
        cout<<"(测试2赋予p2指针的值)"<<*p2<<endl;
            cout<<"(测试2也有地址?)"<<p2<<"(测试2地址是否一样)"<<&p2<<endl;
    delete p1;
    delete p2;
    system("pause");
    return 0;
}
探讨问题一:
12为什么会有地址!?
探讨问题二;
程序的执行的步骤是什么怎么实现程序的!?



 
											





 
	    

 
	






