title: Calling Member Functions within Main C++
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  class MyClass
  {
  public:
         void printInformation();
  };
  
  void MyClass::printInformation()
  {
       return;
  }
  
  int main()
  {
  
      MyClass::printInformation();
  
      fgetc( stdin );
      return(0);
  }
  </code></pre>
  
  <p>How would I call the <code>printInformation</code> function within <code>main</code>?
  The error tells me that I need to use a class object to do so.</p>