Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91130820
sstream.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
Fri, Nov 8, 05:36
Size
280 B
Mime Type
text/x-c
Expires
Sun, Nov 10, 05:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22202415
Attached To
R7571 SP4E-TB-TL-FR
sstream.cpp
View Options
#include <iostream>
#include <sstream>
int
main
()
{
std
::
stringstream
sstr
(
"1 2 3.14"
);
int
i
,
j
;
double
k
;
sstr
>>
i
>>
j
>>
k
;
std
::
cout
<<
i
<<
" "
<<
j
<<
" "
<<
k
<<
std
::
endl
;
std
::
stringstream
sstr2
;
sstr2
<<
142
;
std
::
cout
<<
sstr2
.
str
()
<<
std
::
endl
;
}
Event Timeline
Log In to Comment