// main.cpp #include using namespace std; #include "Student.h" void display(const struct Student student); int main() { int i; struct Student student[40] = {10001, "CAC", 10002, "CBB", 10003, "AAB"}; for (i = 0; i < 3; i++) display(student[i]); return 0; } void display(const struct Student student) { cout << student.no << ' ' << student.grade << endl; }