c数组定义与初始化
int array[100];//长度100;
int array[100] = {1,2,3,4,5,5,6}//定义时进行初始化
int * a =0 ;//a指向int数据
int* array = new int[100]//定义一个指向int类型数据的指针
int* array = new int[100](1,2); delete []array; 为长度为100的数组array初始化前两个元素
结构体数组定义与初始化
struct student stu[3]={
{10101,"LiuHu",'F',18,99.7,"beijing road"},
{10102,"NaoDan",'M',17,99.8,"shanghai road"},
{10103,"MaHuangTeng",'F',48,99.9,"shenzhen road"}
};