title: Creating a fraction list array in a class | C++
body: <p>I need help creating a fractionlist array in a class.
  So lets say I already have a fraction class with private: numerator and denom.</p>
  
  <p>So what I'm suppose to do within this fractionlist class is</p>
  
  <ol>
  <li><p>I should be able to read a file that contains a list like this.
  " 22 51 3 5 11 43 34 54 " with the first being a numerator and the second being a denom and so on. So it has 4 fractions. I want those 4 fractions to be stored in the array that is a private member. The max is 20 fractions.</p></li>
  <li><p>I should be able to print to an output file or standard output the following:
  a) All the fractions.  b)Sum of all the fractions in fraction form (Example: numerator: 55, denominator: 82)</p></li>
  </ol>
  
  <p>What I really just want to know is what should my private data members be?</p>
  
  <p>here is what I have.</p>
  
  <pre><code>class Fractionlist
  {
  Private:
      Fractionlist [] Max;
      const static int MaxFraction = 30;
  
  }
  </code></pre>
  
  <p>Which private member functions to set up so I do what is asked. So basically I need the the data members that would allow me to input the fractions.</p>