This is my code below. If i were to enter 2 3 2 3 3 5 4, i were to get
0 0's
0 1's
2 2's
3 3's
1 4's
1 5's
0 6's
0 7's
0 8's
0 9's
#include "std_lib_facilities.h"
int main()
{
int num;
vector<int> group;
vector<int> freq;
cout<<"Enter 9 numbers, single digits. \n";
while(cin>>num)
{
group.push_back(num);
}
for(int i=0; i < group.size(); i++)
{
freq[group[i]]++;
}
for (int j=0; j < freq.size(); j++)
{
cout<<""<<freq[j]<<" "<<j<<"'s. \n";
}
keep_window_open();
}