0.
1. syntax
int foo[5]; // an array of int, an empty array
int foo[5] = {16, 2, 77, 40, 123}; // an array of int with initilization
int* ptr[5]; // an array of pointer, each pointer points to an int
double *p; // a pointer pointing to a double
vector<int> v; // an array of int
vector<int*> vp; // array of pointer, each pointer points to an int
原文地址:https://www.cnblogs.com/sarah-zhang/p/12235421.html
时间: 2024-10-16 14:19:24