array
数组初始化
int *p =(int[]){1,3,3,4,5});//C风格
int a[5]{1,2,3,4,5};//栈上
int *p(new int[5]{1,3,3,4,5});//堆上
#include <iostream>
#include <array>
int main(int argc, const char * argv[])
{
int *p = new int[5]{
5, 4, 3, 2, 1};
for (int i =0; i<5; i++) {
cout<<p[i];
}
cout<<endl;
int a[5]{
5, 4, 3, 2, 1};
for (int i = 0; i<5