C++ - Splitting a string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

C++ - Splitting a string

I've in input any numbers, space-separed (e.g. "3 4 - 2"). Is there any predefined function in C++ to split this string by spaces and extract numbers in an array or any other data structures?

14th Aug 2019, 10:04 PM
Paolo De Nictolis
Paolo De Nictolis - avatar
1 Answer
14th Aug 2019, 10:31 PM
Paul Grasser
Paul Grasser - avatar