69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdlib.h>
#include <iostream>
using namespace std;
int main()
{
char *p;
int i=0;
try {
do {
p=new char[1024*1024*8];
i++;
} while(p);
}
catch(...)
{
}
cout << "get Memory "<< i*8 << "M" << endl;
system("pause");
delete p;
return 0;
}