title: strcmp conversion from ‘char’ to ‘const char*’
body: <p>I'm having a problem with strcmp.</p>
  
  <p>This is my code.</p>
  
  <pre><code>while (strcmp("m",wood) !=0 || strcmp("j",wood) !=0 || strcmp("o",wood) !=0){
      cout &lt;&lt; "(m for mahogany, o for oak, or p for pine): ";
  cin &gt;&gt; wood;
  }
  </code></pre>
  
  <p>And this is my error:</p>
  
  <pre><code>dining.cpp: In member function ‘void DiningSet::woodType()’:
  dining.cpp:76:24: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
  /usr/include/string.h:143:12: error:   initialising argument 2 of ‘int strcmp(const char*, const char*)’ [-fpermissive]
  dining.cpp:76:48: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
  /usr/include/string.h:143:12: error:   initialising argument 2 of ‘int strcmp(const char*, const char*)’ [-fpermissive]
  dining.cpp:76:72: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
  /usr/include/string.h:143:12: error:   initialising argument 2 of ‘int strcmp(const char*, const char*)’ [-fpermissive]
  </code></pre>