Hello there, I need help on finding out how to count the number of extensions found using the Boost filesystem.
How i get the extensions is with this:
extension(iter->path())
I now need to know how to store the type of extension and then the next time it comes around increase its occurrence by 1.
Output should look like this:
Ext : # : file size
-------------------------------------------------------
.cpp : 5 : 124,255
.exe : 10 : 729,358,928
.ppt : 4 : 15,626
.obj : 9 : 974,257,151
.txt : 49 : 36,291
.vbs : 8 : 1,387
I was deciding to use a map, but I'm not sure how maps really work, or if they could even accomplish this task.
Could anyone help me out?