Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hi this is my code and its supposed to print an accending list from the txt file and then sort it into lists based on

hi this is my code and its supposed to print an accending list from the txt file and then sort it into lists based on the grade standings and print with it the avg gpa in each list and in the entire school. im stuck? what is it that i need to add or fix
image text in transcribed
image text in transcribed
#include ciostream #include using namespace std; class A 10 11 2 private: string nane; string level string spas publici TE 13 10 1 A(); void Name(string a); void Level(string); vold Gpa(string) 13 20 21 23 AA() void At:Name(string at name assign(a); 23 IH void Ati Level(string at level.assign(); } void Appa(string) spa.assign(a); } 31 sy int main(int argc, char margv[]) { A students (25); char c[40]; string name; string level: string spas string tempi int 1.3: 30 CO ifstream myfite(College.txt"): for (int 1-3;istudents[1]) swap(students, students(0) Invalid operandsto binary expression and W) Expected after expression // print cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Are robots going to displace all workers? Explain your answer.

Answered: 1 week ago