Axel Richter: c++ prob

Beitrag lesen

Hallo,

if(!strcmp(x,pass)) cout<<"ja";
else cout<<"ne";

<anmerkung> strcmp gibt Null zurück, wenn die strings gleich sind </anmerkung>

romy

Hast Du schon bemerkt, dass x und pass bei Soße keine Strings sind, sondern Chars. Ne, auch keine Char-Arrays, sondern einfache Chars?

Gruß

Axel