+ 1

Split a String to an Array/Vector in C++

Sorry, but I don't really know how to explain it. In Python 3, we have something like: s = "123.456.789" n = list(map(int,s.split("."))) Is there a way to do something like that in C++? Whether saving it into an array or a vector. Thanks in advance!

1st Jun 2019, 2:47 AM
Noverdi Ramadhan
Noverdi Ramadhan - avatar
2 Réponses
+ 1
Thank you!
1st Jun 2019, 9:53 AM
Noverdi Ramadhan
Noverdi Ramadhan - avatar