Question 2
Figure below shows that Student is a structure consisting of four different objects. The figure below illustrates how a struct is declared, how its constituent data members are accessed, and how it can be passed as a parameter to a function. You need to calculate the grade point average from the given pointer1 and pointer2. We have the declaration:
Student s;
struct number
{
string firstName;
string 1astName;
int studentNum;
int pointer1;
int pointer2;
};
Write a program that produce an output that will call struct Student for last name, first name, pointer1 and pointer 2 for a student named Mary.
Comments
Leave a comment