C++ - Splitting a string | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
14th Aug 2019, 10:31 PM
Paul Grasser
Paul Grasser - avatar