Question
IN C++ Read a file with the following fields: first and last names, GPA, an Id number , and email. ( no need of error
IN C++
Read a file with the following fields: first and last names, GPA, an Id number , and email. ( no need of error checking).
Creat a menu which allows to : print records unsorted,sort by various fields (create one function to sort records by any field using array of pointers), and quit the program.
No goto, continue, break ( except for switch)
I am trying to write this program but im having trouble writing one function that can sort any field from a struct using a pointer pointing to an array. I tried switch but i dont know what im doing wrong. Thank you in advance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started