Error C++ | ISO C++ forbids assignment of arrays
<p>I have a problem which I can not solve.
If this query is answered as "yes", then should anrede = female.</p>

<p>Dev++ gives me this error:
ISO C++ forbids assignment of arrays</p>

<hr>

<pre><code>char anrede[10];

printf("Anrede: female?? Yes/No");
scanf("%s", &amp;anrede);

if(anrede == "Yes"){
    anrede = "female";
} else{
    anrede = "male";
}
</code></pre>

<p>Can someone help me?</p>
