so i have an array of 300 numbers.
lets say like Tally ;
i need to write a code which checks if any of the numbers of the arrays repeat it self and how many times does the number repeats it self.
so like if Tally  contains 33, and tally  and tally  and tally  all contain 33...
i will like to at the end have on the screen something like..33 came up 4 times or 33 = 4, or something like that...help please :)/> thanks in advance...
am not asking for the code to be written for me...but giving me an idea on how to go about it even in words and not in codes...but some guidance in words will be enough..thanks
You could do a loop to see weather they repeat,for example a for loop,start at Tally if it contains 33 then print it on the screen and then move on to the next array and if the next array is equal to Tally then print it on the screen and do that until all the arrays indices are checked.
you could build a map<int, int> mapping each value to the number of times it appears in the array (takes a single pass doing ++stats[value] for every value in the array, or simply convert the array directly into a multiset<int>, and then do a pass over the map/multiset printing the values whose counts are greater than one.