1.3.3 Comparing Strings
Unlike Java, in C++ strings can be compared directly using the == sign.
Similar to other languages, strings will only match if each character matches exactly, including case.
For example Hello
will match to Hello
, but not hello
.
Try This Example
Last updated