C++ - Splitting a string | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
14th Aug 2019, 10:31 PM
Paul Grasser
Paul Grasser - avatar