Hello thank you for taking the time to help.
Does someone know the proper way to declare a vector GLOBALLY?
The following code works when I put the vector within the function and make it local.
But for my assignment it needs to be declared Globally because I will have more than one function using it.
Any help would be much appreciated!
note there the original vector is const qualified and so has to be passed by copy to modifying algorithms like std::sort that gets to work on a copy of the vector. If you wish to pass the vector by reference then the original vector should not be const qualified