error: incompatible types in assignment of ‘char [20]’ to ‘char* [20]’
<p>how can i write it so i it will be possible to put input in struct element bla?
(this is an example to find a solution to my problem...my code is actually about linear hasing)</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string.h&gt;
 using namespace std;

 struct data
 {
     int key;
     char* word[20];
 };

 int main()
 {
     data* array[20];
     char input[20];
     cout&lt;&lt;"give me a word"&lt;&lt;endl;
     cin.getline(input, 20);
     array[0]-&gt;word = input; //here is my problem
     cout&lt;&lt;array[0]-&gt;word&lt;&lt;endl;
 }
</code></pre>
