Hi, this is my first time using this website, i have been taking a programming class at my high school this semester and i have been enjoying it alot. I fell a bit behind a few weeks ago and for some reason went forward onto the next project before doing this one. The project is a statistics program for arrays/vectors. I was making progress on the program until i encountered an error when i tried buidling.
I am using code::blocks 13.12 .
The point where the error occurs is line 26. Here is the error:
error: no match for 'operator<<' in 'std::operator<< <std::char_traits<char> >((* & std::cout), ((const char*) "Sort: " )) << name '
error: candidates are:
And then there is a bunch of stuff that would take forever to copy w/o copy&paste (the code:blocks is installed on my school's virtual computers, so i can only copy and paste into them)
When printing out the vector contents at line 26, you need to take a similar approach as you did in getting the data into the array, using a for loop and individual elements.
Check the logic in your sort function - isfinished gets set to false at the end of the for loop - how is the while loop going to exit?