16,551
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
char arr1[8];
int main()
{
using std::cout;
using std::endl;
double *p2;
p2=new (arr1) double[2];
*p2=20.99;
*(p2+1)=199.88;
cout << *p2 << endl;
cout << *(p2+1) << endl;
return 0;
}