Does the way of initialising a vector and the order of input in c++ affect the data and sorting of the vector?
I’m new to programming and C++. I’m going through Programming: Principles and Practice using C++ (Third Edition) by Bjarne Stroustrup. I was introduced to basic operators, selection and iteration, vector in third chapter. The exercise at the end asked me to write a program to find mode of a set of positive integers.