Hi,
Although I'm not sure what you are attempting to do next line is wrong:It should beCode:for (int i = 0, i < 5; i++ ;); /// line 17Anyway, above expression is useless because of ';' at the end (out of parenthesis). It just iterates 5 times doing nothing else.Code:for (int i = 0; i < 5; i++);
There's another compiler mistake. StringArray is a vector of strings. You sorting there as if they were a vector of ints?Hope this helps.Code:sort (s.begin(), s.end(), greater<int>());
Albert.




Reply With Quote