c++结构体数组指针初始化
bop* person = new bop;bop person =
{
{"li hua" ,"boss" ,"fox",1},
{"xiao wang" ,"worker" ,"bird",3},
{"lao wang" ,"manager" ,"cat",2},
{"chen " ,"CEO" ,"pig",2},
{"song" ,"white " ,"rabbit",1}
};
显示 person 重定义,不同的间接寻址类型,什么情况 你直接给 person赋值就行,不用再写类型,也不用加上
页:
[1]