Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78337420
sstream_main_arguments.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
Mon, Aug 19, 22:00
Size
209 B
Mime Type
text/x-c
Expires
Wed, Aug 21, 22:00 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20029941
Attached To
R7571 SP4E-TB-TL-FR
sstream_main_arguments.cpp
View Options
#include <sstream>
int main(int argc, char **argv) {
std::stringstream sstr;
for (int i = 1; i < argc; ++i) {
sstr << argv[i] << " ";
}
double arg1;
sstr >> arg1;
int arg2;
sstr >> arg2;
}
Event Timeline
Log In to Comment