// derived_data_types_ex1.cpp /* Purpose: To demonstrate use of derived data types Note: There are two modules: - derived_data_types.h - derived_data_types.cpp so compile accordingly... */ #include using namespace std; #include "derived_data_types_ex1.h" // include header file main() { int i; struct Student murray = { 3457, {'A','B','A','C','B'}}; cout << endl << "Here are contents of the instance (called \"murray\") of" << endl; cout << "the object (named \"Student\"):" << endl << endl; cout << "Student number: " << murray.no << endl; cout << "Grades: " ; for (i = 0; i <= 5; i++) cout << murray.grades[i] << " "; cout << endl << endl; }