How can i store 3 different values in a single datatype?

For a final C++ project that i am working on right now for college, we need to create a program that will read in a folder on your computer, and then will list the different file types in that folder, how many of each of those file types there are, and finally how much space those file types take up. So i figured i would use a map for this set up as so:( map <string, int> files )so the string would hold the extension and the int holds the count,but im just unsure as to how i can store the file size too?
An help is appreciated
Create a struct or a class with two integer data members, or you can use two maps.
Topic archived. No new replies allowed.