How do you write structures?

Im new to C++ and I'm really confused about how structures work.

Write a short program to create a “student” structure that will store a student’s id number, name, major, and CGPA.

Then, assign the follow information into the structure:
Name: Elizabeth Carter
Id number: 53124
Major: IS
CGPA: 3.68
Print out all fields in the structure.

I have to write this short program but I dont even know how to approach it. Any help would be awesome.
Hi...

See my post on your thread in "Beginners".

-Albatross
Topic archived. No new replies allowed.