yes.
Construct a block of code that would make the print function into a member function.
struct Student {
int id, year;
string name;
};
void printStudent(const Student& stu) {
cout << stu.id << ":" << stu.year << ":" << stu.name << endl;
}
int main( ) {
Student s1 = { 56673, 2023, "Bob" };
printStudent (s1);
}