Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Student {
- int id, age, grade;
- float gpa;
- };
- int main() {
- Student s;
- s.id = 100;
- s.age = 30;
- s.grade = 4;
- s.gpa = 9.58;
- cout << s.id << " " << s.age << " " << s.grade << " " << s.gpa << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement