c++ forbids comparsion between pointer and integer
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9280921/iso-c-forbids-comparison-between-pointer-and-integer-fpermissive-c">ISO C++ forbids comparison between pointer and integer [-fpermissive]| [c++]</a>  </p>
</blockquote>



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

using namespace std;

int main()
{
char name[20];
char color[20];
char response[20];
int age;
    cout &lt;&lt; "What is your name?\n";
    cin.getline(name, 20); cout &lt;&lt; endl;
    cout &lt;&lt; "What is your favorite color?\n";
    cin.getline(color, 20); cout &lt;&lt; endl;
    cout &lt;&lt; "How old are you?\n";
    cin &gt;&gt; age;
    cout &lt;&lt; "Your name is " &lt;&lt; name &lt;&lt; ", your favorite color is " &lt;&lt; color &lt;&lt; " and you are " &lt;&lt; age &lt;&lt; " years old!\n";
    cin.get();
    cout &lt;&lt; "You wake up from bed all you know is your name and age.\n";
    cout &lt;&lt; "You are wearing a plain " &lt;&lt; color &lt;&lt; " t-shirt.\n";
    cout &lt;&lt; "You see a gun on the table.\n";
    cout &lt;&lt; "You see a door.\n";
    cout &lt;&lt; "What do you do?\n";
    cin.getline(response, 20);
    if(response == 'Pick up the gun')
    {
        cout &lt;&lt; "You pick up the gun.\n";
        cout &lt;&lt; "Knock down the door with it? (Y/N)\n";
        cin.getline(response, 20);
        if(response == 'Y')
        {
            cout &lt;&lt; "The door opens.\n";
            cout &lt;&lt; "You see a zombie.\n";
            cout &lt;&lt; "You see an open window.\n";
            cout &lt;&lt; "What do you do?\n";
            cin.getline(response, 20);
            if(response == 'Shoot the zombie')
            {
                cout &lt;&lt; "The zombie dies and it attracts other zombies.\n";
                cout &lt;&lt; "GAME OVER!\n";
                cin.get();
                return 0;
            }
            else if(response == 'Jump out the window')
            {
                cout &lt;&lt; "The zombie does not hear you and you safely make it out!\n";
                cout &lt;&lt; "VICTORY!\n";
                cin.get();
                return 0;
            }
        }
        else if(response == 'N')
        {
        }
    }
    else if(response == 'Open the door')
    {
        cout &lt;&lt; "It appears to be locked.\n";
    }
    return 0;
}
</code></pre>

<p>trying to make a super ultra short and simple text rping game but it does not work!
my errors are:</p>

<blockquote>
<pre><code>24 error:no matching function for call to 'std::basic_istream&lt;char&gt;::getline(std::string&amp;)'
</code></pre>
</blockquote>

<p>and also on EVERY SINGLE LINE with the response <code>if</code> stuff i get
C++ forbids comparsion between pointer and integer</p>

<p>im not trying to do that in any way shape or form o_o
nothing seems to help solve it. people seem to get it to work because they use <code>""</code> instead of <code>''</code> and they change it to <code>''</code> and it works fine. but im always using <code>''</code>!</p>
