C++ Basic Syntax Exercises – Classes and Structures
Lesson 26: Classes and Structures P5740 【Deep Foundation 7. Example 9】 The Most Outstanding Student #include<iostream> #include<cstring> using namespace std; // Define structure struct student{ string name; float chinese; float math; float english; float total; }; int main(){ int n; cin >> n; student stus[1001]; // Record the index of the student with the highest … Read more