cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Sorting Question
Sorting Question
May 28, 2019 at 3:10am UTC
het
(2)
create a function named firstNameSortIndex that takes one argument
a dynamic array of structs of type StudentRecord and returns the sorting index array according first name.
Then print the array according to this index
May 28, 2019 at 3:16am UTC
Duthomhas
(13208)
No.
This is very easy homework. Try it yourself, and we will help you get it right.
But no one here is interested in doing it for you. We figured it out ourselves ages ago.
May 28, 2019 at 7:05am UTC
keskiverto
(10402)
one argument -- a dynamic array
That says "one", but probably means logical one rather than literal one.
It can really be one:
foo(
const
std::vector<StudentRecord>& records )
but also two:
foo(
const
StudentRecord * records, size_t N )
May 28, 2019 at 9:41pm UTC
het
(2)
hey thanx for the motivation and help, i figured it it it was just bubble sorting with arrays.
Topic archived. No new replies allowed.