Download presentation
Presentation is loading. Please wait.
Published byBaldric Watson Modified over 8 years ago
1
Experiment 11 Structured and Unions Dr. rer.nat. Jing LU jinglush@126.com
2
Goal Learn how to define data structures and declare respective variables use the defined data structures. Learn the difference between unions and structures. Learn how to declare unions and respective variables.
3
Practice Define a structure to store the information of students, including: StudentNo, StudentName, Gender, Nationality, Birthday, Major. Birthday will have “month, day, year”. So you must define a structure describing it.
4
Practice Task1: Define an array with 15 elements. Read from the keyboard 15 students’ information. Task2: Output the information you have input. Task3: calculate each student’s age and output it.
5
Result and Analysis What are the advantages and disadvantages of Structures?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.