Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

before the error my output was empty and not reading from the text file and now i have this error. it's supposed to print my

before the error my output was empty and not reading from the text file and now i have this error. it's supposed to print my text file in accending order and then section it to groups and show their avg gpas of all students in that category. whats the problem
image text in transcribed
image text in transcribed
image text in transcribed
Ninclude #include using namespace std; class A public: string name: string level; string spa: 16 TB 10 A(); void GetName(stringa); void Getlevel(string); void GetGpa(string a)! string si }; A110) void AitGetName(stringa) name assign(); } void And Getlevel(string) level.assigna); } void At GetGpa(string) spa assign) 22 30 int main(int arge, char margv[]) { char c[40]; A students(25), (25), s[25].5)25), se[25); string name: string level; string spa: string temp: int i, j; ifstream myfile: Run Succeeded Time 28 me Peak Memory 733K 7 main Tabs 40 Line 78, Column Untitled 8.COP College IT Serem Wyle; myfile.open("College.txt'); string colfite; if (myfile.is_open()) 1 while(nyfile) // settinec, 443) getline(myfile.colfile); 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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions