I was searching on the web about a c++ function that can compare two strings and returns 1 if the data in both the strings are equal else 0. But I didn't get a satisfactory answer.
For example, consider the following pseudo-code,
a = "hii"
b = "bye"
The return value should be 0.
If,
a = "hii"
b = "hii"
The return value should be 1.
Do we have any inbuilt(or from STL) function which can do the job?
if a and b are std::string you could use a.operator==(b) a == b
⚛ Hz
Anonymous
Ehsan
Pavel
robherc
Diego
Alex
Henry
Vlad
caesar
Eddie