Matrix - Frequencies

Hi everyone,

I'm recently in C++ and I would like to develop one C++ code that read a file ".txt" of strings and numbers with different size of columns and lines.

After I need to get the frequencies of each element of the same column.

Cheers,

SADSCPP

Example:

ABC DEF GHI JKL
111 222 333 444
555 666 777 888
111 777 888 999
111 111 111 666

Column ABC:

Found:
111
555

Frequencies of 111: 75%
Frequencies of 555: 25%
Very interesting.

Is there a question in there somewhere? =P
Topic archived. No new replies allowed.