Oh, I noticed one more thing... When I sort the list by names it displays AFGANISTAN (which is the first record) on the opposite end of the list (eg. when I sort it descending, it gets displayed...
Type: Posts; User: lordmorgul
Oh, I noticed one more thing... When I sort the list by names it displays AFGANISTAN (which is the first record) on the opposite end of the list (eg. when I sort it descending, it gets displayed...
That worked. Thank you very much!
I get this error after inserting your code:
main.cpp: In function ‘int main(int, char**)’:
main.cpp:57: error: ‘Country.std::vector<_Tp, _Alloc>::operator[] [with _Tp = COUNTRY, _Alloc =...
Oh, wow, that was actually quite obvious, I kept trying to enter it after c_str() ;-) Thank you very much.
But I still have no luck with fixing the overlapping output. I forgot to mention, that...
I don't get how c_str() works... Where do I add the ".txt"?
And as for the linefeed character ─ I don't know how to modify the code ─ when I change the char c to a string I get tons of errors.
Hello. I've written this program which reads a preformatted text file with a list of countries and then sorts them, adds/modifies/deletes records and exports the modified list to another file.
I've...