error: unexpected unqualified-id before '.' token.
<p>Im trying to make a matrix filled with O chars, but Im new to classes.
When trying to run I get the following error:</p>

<p>error: unexpected unqualified-id before '.' token.    </p>

<p>Im doing something wrong with the class, but I cannot find out what. 
Anybody has an idea?</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

class field
    {

private:

public:
    char** the_field;
    int i, j;
    char**  create_field(void);
    void    print_field();

    };

////////// CREATE THE FIELD //////////

  char** field::create_field(void) //define member function
   {

        for(int i = 0; i &lt; 14; i++)
        {
            the_field[i] = new char [14];

            for(int j = 0; j &lt; 14; j++)
            {
                the_field[i][j] = 'O';
            }
        }
        return the_field;
   }
//////////// PRINT THE FIELD //

    void field::print_field()
    {
        for(int i = 0; i &lt; 14; ++i)
        {
            for(int j = 0; j &lt; 14; ++j)
            {
                cout &lt;&lt; " " &lt;&lt; the_field[i][j] &lt;&lt; " ";
            }
 //             putchar('\n');
            cout&lt;&lt;"\n";
        }
    }

int main()
{
//declare objects with type field
field create_field; //declare create_field as type of field
field print_field;
int i, j;

field.create_field();
field.print_field();

 return 0;
 }
</code></pre>
