Lessons
C++ · Bigger Programs · 26. Structs: Your Own Type
step 1 of 7
Your own type
A student has a name and a grade. A struct packs them into one new type, Student.
A dot reaches inside: s.name, s.grade.
Mission
Make the student Saraa, in grade 7.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
← press me!
Press RUN to see what this program does.