title: error: expected unqualified-id before '.' token
body: <pre><code>10  struct element
  11  {
  12      int listnum;
  13      char *tablename;
  14      char** headl;
  15      float** tabledata;
  16      struct element *next;
  17  };
  18
  19  struct element *next = NULL;
  20  struct element *start= NULL;
  21
  22  void add_element(char *tablenameadd, char **headladd, float **tableadd, int hcols, int trows, int tcols)
  23  {
  24      int a=1;
  25
  26      struct element *pointer;
  27
  28  element.headl = new char*[hcols];
  29  element.tabledata = new float*[trows][tcols];
  ...
  </code></pre>
  <p>I get an error while debugging this in eclipse as a C++ project. The 2 error-codes I receive are both</p>
  <blockquote>
  <p>expected unqualified-id before '.' token</p>
  </blockquote>
  <p>for program lines 28 and 29</p>
  <p>Is there anyone able to help?</p>
  <p>I changed it from a C project to a C++ project yesterday.</p>