[求助]指针数组赋值的问题
#include <iostream.h>
struct Person
{
char name[20];
unsigned long id;
float salary;
};
Person allone[6]={{"jone", 12345, 339.0},
{"david", 13916, 449.0},
{"marit", 27519, 311.0},
{"jasen", 42876, 623.0},
{"peter", 23987, 400.0},
{"yoke", 12335, 511.0}};
void main()
{
Person* pA[6]={&allone[0], &allone[1], &allone[2],
&allone[3], &allone[4], &allone[5]};
为什么最后的 不可以写成
Person* pA[6]=allone;