However, you would be much better using std::string, which would also allow you to use == for testing equality.
BTW, I'm guessing what you might mean by "It doesn't work". I think you would get a better response if you stated what you actually meant by that. Also, it would help if you posted a complete, (ideally) compileable/runnable code to test in cpp.sh.
I tried to make a simple logging system. I wrote codes. When I enter to my account[Nickname: hello
- Parola(password): world] it shows "Giris basarisiz. Lutfen tekrar deneyiniz veya uye olunuz.".
I enter rightly but it says "You enter wrongly". I hope you got me. :)