title: error: conversion from ‘const char (*)[11]’ to non-scalar type ‘L::Entry’ requested g++ 4.4.5
body: <p>alright so I am making dictionary class that takes an array of another homemade class: Entry... I am trying to make an array of Entries... I eventually managed to get rid of most of the errors... except one that states the error is in cstdio:</p>
  
  <blockquote>
    <p>error: conversion from ‘const char (*)[11]’ to non-scalar type ‘L::Entry’ requested</p>
  </blockquote>
  
  <p>I can't figure out anything wrong but I have pinpointed that the array initialization is were the error starts up... heres the code for my main file that tests my Entry class:</p>
  
  <pre><code>#include "Entry.cpp"
  #include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;cstdio&gt;
  using namespace std;
  using namespace L;
  int main(){
  Entry entry("word", "definition");
  cout &lt;&lt; "entry's word is: " &lt;&lt; entry.getWord() &lt;&lt; endl;
  cout &lt;&lt; "entry's definition is: " &lt;&lt; entry.getDefinition() &lt;&lt; endl;
  
  cout &lt;&lt; "\n\n\n" &lt;&lt; endl;
  
  Entry entries[2] = {
      &amp;Entry("Word", "Definition"),
      &amp;Entry("Otherword", "OtherDefiniin")
  }; 
  
  cout &lt;&lt; "entries's word is: " &lt;&lt; entries[1].getWord() &lt;&lt; endl;
  cout &lt;&lt; "entries's definition is: " &lt;&lt; entries[1].getDefinition() &lt;&lt; endl;
  return 0;
  }
  </code></pre>
  
  <p>and here is Entry.cpp:</p>
  
  <pre><code>#include "Entry.h"
  #include &lt;string.h&gt;
  namespace L
  {
  //constructors and destructors
  Entry::Entry(const char *word, const char *def) : word(word), def(def){}
  Entry::Entry(Entry &amp;entryObj) : word(entryObj.word), def(entryObj.def){}
  Entry::~Entry(){}
  //setter methods
  void Entry::setWord(char *newWord){Entry::word = newWord;}
  void Entry::setDefinition(char *newDef){Entry::word = newDef;}
  //getter methods
  std::string Entry::getWord(){return Entry::word;}
  std::string Entry::getDefinition(){return Entry::def;}
  }
  </code></pre>
  
  <p>and finally Entry.h:</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;cstring&gt;
  #include &lt;string&gt;
  #include &lt;string.h&gt;
  #ifndef ENTRY_H
  #define ENTRY_H
  namespace L
  {
      class Entry
          {
          public:
              //constructors and destructors
              Entry(const char *word = "", const char *def = "");
              Entry(Entry &amp;entryObj);
              virtual ~Entry();
              //setter methods
              void setWord(char *newWord);
              void setDefinition(char *newDef);
              //getter methods
              std::string getWord();
              std::string getDefinition();
          private:
              std::string word;
              std::string def;
  
          };
  
  
  }
  #endif
  </code></pre>
  
  <p>thanks in advance...</p>