title: NullReferenceException on Class array reference
body: <p>My code is as follows:</p>
  
  <pre><code>int main()
  { 
      CProfile **profiles;
      *profiles  = new CProfile[8];
      profiles[0] = new CProfile(2000,2,4);
      profiles[1] = new CProfile(55000,6,50);
      profiles[2] = new CProfile(758200,5,23);
  }
  </code></pre>
  
  <p>Where CProfile is defined as :</p>
  
  <pre><code>#ifndef PROFILE_H
  #define PROFILE_H
  
  class CProfile
  {
  private: 
      int m_Experience;
      int m_TownhallLevel;
      int m_Trophies;
  public:
      CProfile(void);
      CProfile(int,int,int);
      void PrintInfo(void);
  };
  #endif 
  </code></pre>
  
  <p>Everything seems to be compiling fine but a NullReferenceException occurs during <code>*profiles  = new CProfile[8];</code>. I'm new to C++ and I can't seem to figure out how to properly instantiate a class. Any help would be appreciated, thanks.</p>