Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85757630
console_output.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Oct 1, 22:19
Size
292 B
Mime Type
text/x-c
Expires
Thu, Oct 3, 22:19 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21263207
Attached To
R9360 PCSC_git
console_output.cpp
View Options
#include <iostream>
int
main
()
{
std
::
cout
<<
"Hello World!
\n
"
;
// Output multiple variables at the same time:
int
x
=
1
,
y
=
2
;
std
::
cout
<<
"x = "
<<
x
<<
" and y = "
<<
y
<<
"
\n
"
;
// Output is buffered, to force output:
std
::
cout
<<
"Hello World
\n
"
;
std
::
cout
.
flush
();
}
Event Timeline
Log In to Comment