Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions