Hi I'm currently learning c++ from a book which asks a question:
Write a program to compute and print the quartiles (that is, the quarter of the numbers with the largest values, the next highest quarter, and so on) of a set of integers.
I have to do this using std::vector but depending on the list's size it is unable to be divided evenly into 4. Could anyone please tell me the solution?



LinkBack URL
About LinkBacks


