Hello everyone, i am new in this forum and also in C++ programming. I just started learning C++ few months ago from my university then i stuck from some assignment they give me yesterday. I need to count number's occurrences from input data. This is the assignment :
Enter 20 input numbers below :
30, 10, 20, 20, 30, 60, 90, 70, 60, 40, 30,90, 20, 30, 90, 30, 50, 60, 80, 20
a. Sum all the input number.
b. Count the occurrences of each number ! Example :
Number "10" occurrences : 1 time
Number "20" occurrences : 4 times
and so on.
I already reading some reference for counting words but somehow i can't use it to solve this problem. I need your help >.<