Skip to content
Snippets Groups Projects
file_istringstream_int2.cpp 240 B
Newer Older
#include <iostream>
#include <sstream>
using namespace std;

int main() {
    istringstream flux("12 14.5 13 4");
    int j, k, i;
    string s;

    flux >> j >> k >> s >> i;

    cout << k << " " << s << " " << i << endl;
    return 0;
}