I'm kind of lost. I'm trying to find the mode value in the list. All list are stroed in array. Anyone has any idea?
notbunny
0
Newbie Poster
Recommended Answers
Jump to PostWell, do you understand what the frequency and mode are? The mode can be easily found once you've obtained the frequency, and the frequency is trivial with the standard library:
#include <cstddef> #include <iostream> #include <map> #define length(x) (sizeof (x) / sizeof *(x)) int main() { int …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.