title: Call of an object of a class type without appropriate operator(). Inside a .cpp file
body: <p>I declared a class and then an object, but when I want to use my object, it gives me an error. I searched a bit on Google, but didn't understand what my problem is.  The way I declared my class / object is the same as I usually do, and this is the first time it doesn't work.</p>
  <p>Here's my <code>.cpp</code>:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &quot;game.h++&quot;
  
  int game_loop(void)
  {
      char *nam;
      Hero *myHero = new Hero();
  
      printf(&quot;So what's your name ? : &quot;);
      scanf(&quot;%s&quot;, &amp;nam);
      myHero-&gt;name(nam); //the error is here
  }
  </code></pre>
  <p>and my <code>.h++</code>:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;string&gt;
  
  class Hero
  {
      public:
          std::string name;
          int race;
          int classe;
          int level = 0;
          int hp = 10;
          int mana = 5;
  };
  </code></pre>