Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
830c93fd
Unverified
Commit
830c93fd
authored
Mar 29, 2018
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
fixed example for operator> #1029
parent
d2dd27dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
operator__greater.cpp
doc/examples/operator__greater.cpp
+4
-4
operator__greater.link
doc/examples/operator__greater.link
+2
-2
operator__greater.output
doc/examples/operator__greater.output
+4
-4
No files found.
doc/examples/operator__greater.cpp
View file @
830c93fd
...
@@ -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'
;
}
}
doc/examples/operator__greater.link
View file @
830c93fd
<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
doc/examples/operator__greater.output
View file @
830c93fd
[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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment