0

For example, let say a string is "1 3 -1 3 4 5" and i just simply wanted to extract all those integers.

I am looking for easy way to do this. Most others I have seen need to use stodi.h class, and I am looking to avoid using additional class.

HolyMeow
  • 19
  • 6
  • ah... I already checked through that thread. I will just try else where – HolyMeow May 25 '16 at 16:11
  • Have you tried `std::istringstream`? I've heard that you can use the stream extraction operators on it. – Thomas Matthews May 25 '16 at 16:36
  • @ThomasMatthews Yes! I have been trying it, and I was able to make a little progress on it. – HolyMeow May 25 '16 at 20:21
  • (also, this was for a programming site called 'CodinGame', and wasn't sure what are default libraries are. But I am getting more familiarity as it goes. Thanks y'll) – HolyMeow May 25 '16 at 20:22

0 Answers0