Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90335130
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
Thu, Oct 31, 15:44
Size
280 B
Mime Type
text/x-c
Expires
Sat, Nov 2, 15:44 (2 d)
Engine
blob
Format
Raw Data
Handle
22055491
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