0

Just comparing String variable with a raw String, if any mistake is there then Please let me know . Thanks in advance

https://code.sololearn.com/c6ZGjLwAy9xs/?ref=app

18th Oct 2018, 5:39 PM
Shas3 Annabond
Shas3 Annabond - avatar
3 odpowiedzi
+ 7
no problem, happy to help :)
19th Oct 2018, 7:19 AM
blACk sh4d0w
blACk sh4d0w - avatar
+ 6
You cannot compare strings like that. You need to use strcmp function defined in the cstring library http://www.cplusplus.com/reference/cstring/strcmp/
18th Oct 2018, 6:58 PM
blACk sh4d0w
blACk sh4d0w - avatar
0
okay thanks I'll try that :)
19th Oct 2018, 12:50 AM
Shas3 Annabond
Shas3 Annabond - avatar