aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_istream.in
blob: e5988d245cbd28b58a642a8d8d0525241a6bd65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <string>
#include <sstream>
#include <iostream>

int main() {
  std::string mystring("1 2 3");
  std::istringstream is(mystring);
  int one, two, three;

  is >> one >> two >> three;

  printf("%i %i %i", one, two, three);
}