我想使用数组指针作为类的实例。例如:
char *pArray[100];
pArray[1] = &class_name; //pArray[1] has the address of "class_name" class.
cout<<"Name Property: %s Age Property: %d"<<pArray[1].name<<pArray[1].age);
我想使用数组指针作为类的实例。例如:
char *pArray[100];
pArray[1] = &class_name; //pArray[1] has the address of "class_name" class.
cout<<"Name Property: %s Age Property: %d"<<pArray[1].name<<pArray[1].age);