/*/ this is an example of how to pass a array of pointers of a struct datatype as a parameter to a function /*/ #include #include using namespace std; struct P { string fname; string lname; string email; double grade; }; void My_Func(P * array_of_pointers[] ); int main() { // 10 pointers of P datatype P * my_array_of_pointer[10]; //creates the first element my_array_of_pointer[0] = new P; my_array_of_pointer[0]->fname = "Ricardo"; my_array_of_pointer[0]->lname = "Suzuki"; my_array_of_pointer[0]->email = "rs@ada.com"; my_array_of_pointer[0]->grade = 123.4; //creates the second element my_array_of_pointer[1] = new P; my_array_of_pointer[1]->fname = "Vinicius"; my_array_of_pointer[1]->lname = "Hisao"; my_array_of_pointer[1]->email = "vh@yahoo.com"; my_array_of_pointer[1]->grade = 2323.3; // you can have the lines above in a loop // ex: to read all the data from a file My_Func(my_array_of_pointer); return 0; } // here the parameter is an array of pointers // of struct P datatype void My_Func(P * array_of_pointers[] ) { cout<fname<lname<email<grade<