StudentData Write a program in C++ that uses a structure named StudentData to store the following information about a student: name year enrolled in school
StudentData
Write a program in C++ that uses a structure named StudentData to store the following information about a student:
name
year enrolled in school
The program should create two StudentData variables, store values in their members, and pass each one, in turn, to a function that displays the information about the student in a clearly formatted manner. The function should use const reference parameter that allows read-only access to reference parameter without wasting space, speed
Here is the information of two students (variables)
student1 | student2 | |
ID | 12345678 | 11223456 |
name | John Smith | David White |
major | Computer | Biology |
year enrolled in school | 2013 | 2015 |
GPA | 3.8 | 4.0 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started