title: C++ Write in OOP... where to get started?
body: <p>I'm really new to C++ and now I've confronted this issue that I really have no clue how and where to start from.</p>
  
  <p>It's about rewrite an existing simple program using class and object. I read A LOT of books and online resources about OOP, I got the basic concept but I just really don't know how to use it in various different ways.</p>
  
  <p><strong>I'm really sorry that my question was uncleared... Basically my question is, how could I rewrite this bit of code in Object Oriented Programming? (I hope this helps to clear up...)</strong><br>
  <em>-added at 5:29pm on 4/19/2014</em></p>
  
  <p>I've come to the dead end and struggling... Could someone please help me to get started? Even just give me a hint or suggest I'll be grateful!!</p>
  
  <p>This is just a piece of the program that I wrote, I just want to know the steps to make it into OOP.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;vector&gt;
  using namespace std;
  
  int main()
  {
      vector &lt; float &gt; num;
      float sum = 0;
      float average = 0;
      int totalCount = 0; // total number count
  
      // Loop for read in total number count
      cout &lt;&lt; "Please enter total number count\n";
      cin &gt;&gt; totalCount;
  
      sum = 0;
      // Loop for read in numbers
      for (int i = 0; i &lt; totalCount; ++i)
      {
          num.push_back(0); // creates a space, must use this when vector is used
          cout &lt;&lt; "\nPlease enter the number\n" &lt;&lt; "Number " &lt;&lt; i + 1 &lt;&lt; ": ";
          cin &gt;&gt; num[i];
  
          sum += num[i]; // calculate the sum
      }
  
      // Calculate the average
      average = sum / totalCount;
      cout &lt;&lt; "\n\nAverage: " &lt;&lt; average &lt;&lt; "\n";
  
      system("PAUSE");
      return 0;
  }
  </code></pre>