How do I parse a string into an array in C++?
For example: [1:2:3:4]cd/dvd PLDS DVD-RW DU8A6SH DU53 /dev/sr0
[1:2:3:4]cd/dvd PLDS DVD-RW DU8A6SH DU53 /dev/sr0
I want to get an array of integers inside the square bracket []. So the array contains 1,2,3, and 4.
Aucun commentaire:
Enregistrer un commentaire