📝 fixed example for operator> #1029

parent d2dd27dc
...@@ -17,8 +17,8 @@ int main() ...@@ -17,8 +17,8 @@ int main()
// output values and comparisons // output values and comparisons
std::cout << std::boolalpha; std::cout << std::boolalpha;
std::cout << array_1 << " == " << array_2 << " " << (array_1 > array_2) << '\n'; std::cout << array_1 << " > " << array_2 << " " << (array_1 > array_2) << '\n';
std::cout << object_1 << " == " << object_2 << " " << (object_1 > object_2) << '\n'; std::cout << object_1 << " > " << object_2 << " " << (object_1 > object_2) << '\n';
std::cout << number_1 << " == " << number_2 << " " << (number_1 > number_2) << '\n'; std::cout << number_1 << " > " << number_2 << " " << (number_1 > number_2) << '\n';
std::cout << string_1 << " == " << string_2 << " " << (string_1 > string_2) << '\n'; std::cout << string_1 << " > " << string_2 << " " << (string_1 > string_2) << '\n';
} }
<a target="_blank" href="https://wandbox.org/permlink/yiz7oCHVpFHSALB1"><b>online</b></a> <a target="_blank" href="https://wandbox.org/permlink/ntF7DMzC85gbQKHu"><b>online</b></a>
\ No newline at end of file \ No newline at end of file
[1,2,3] == [1,2,4] false [1,2,3] > [1,2,4] false
{"A":"a","B":"b"} == {"A":"a","B":"b"} false {"A":"a","B":"b"} > {"A":"a","B":"b"} false
17 == 17.0000000000001 false 17 > 17.0000000000001 false
"foo" == "bar" true "foo" > "bar" true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment