📝 fixed example for operator> #1029
This commit is contained in:
parent
d2dd27dc3b
commit
830c93fd09
3 changed files with 9 additions and 9 deletions
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<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>
|
|
@ -1,4 +1,4 @@
|
||||||
[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
|
||||||
|
|
Loading…
Reference in a new issue