title: error: ("maybe you meant to use '->'?)
body: <p>i have a problem with a fuction in  a class:</p>
  
  <pre><code>     struct  game{
          string cods;
          string n;
          string g;
          int v;
          game *p;
       };
  
       class list2 {
           private:
               game *pr;
               game *a;
  
           public:
            list2() {
                pr=a=NULL;
             }
  
       string&amp; Acccods (game *p){     // I GOT THE ERROR IN THIS FUCTION.
           return *p.cods;
       }  
        };
  </code></pre>
  
  <p>It fail to compile and i don't know why. i "wasted" hours and hours trying to fix it.</p>