I've seen this done a few months ago, but overall, I'm trying my best to do it by myself, for the sake of my understanding. I have to sort an array of structs, so I'm just trying to get basic sorting down with a simple array. The output that I get is largely fine, except that the 12 is turned into a zero. Also, how would I get the size - would I just use the size() function?
I'm still wondering how I would work this out if I had to input an array from a file. When I tried to "#include <array>" so that I could try out the size function, I got the following error message:
"#error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options."
Yeah, I would love to use vectors, but the particular project that I'm doing uses an array of structs, so I have to just keep on trucking until I, hopefully, get to a more flexible professor.