| | |
Sorting vectors
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
don't make this simple thing complex, declare a 2 dimensional array of large size. and assign a[i][0]=i; if the array element exists already a[i][1]=i; Count the frequencies and store it in a seperate array 10 11 12 13 14
10 11 13 14
10 11
11 as shown. now sort the frequencies and display the contents of the corresponding buckets
10 11 13 14
10 11
11 as shown. now sort the frequencies and display the contents of the corresponding buckets
![]() |
Similar Threads
- STL - Algorithm - find_if (C++)
- Sorting Multiple Vectors (C++)
- Urgent help on vectors (C++)
- Problem of sorting words of each string using pointers (C++)
- Vectors, Functions, and Sorting... oh my! (C++)
Other Threads in the C++ Forum
- Previous Thread: Trouble with fstream
- Next Thread: get length of a dynamic array
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





