#include<iostream>
using namespace std;
int main()
{
int *p;
p=new int; //Allocate memory for an integer为整数分配动态内存空间
if(!p)
{
cout<<"Allocation error\n";
return 1;
}
*p=1000;
cout<<"Here is integer at p:"<<*p<<"\n"; //release memory释放new分配的动态内存空间
delete p;
return 0;
}