Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Student
- {
- public:
- void Input()
- {
- for (int i {0}; i < 5; ++i)
- {
- int score;
- cin >> score;
- total_score += score;
- }
- }
- int CalculateTotalScore() const
- {
- return total_score;
- }
- private:
- int total_score = 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement