0

how to make input string (-1) into integer -1 in C?

if i input string 100(-1)0, i want to change it into 5 integer, 1,0,0,-1,0

3rd Nov 2018, 2:11 PM
Yoaraci
Yoaraci - avatar
1 Réponse
+ 1
To transform strings into integers, see that link http://www.cplusplus.com/reference/string/stoi/
3rd Nov 2018, 2:50 PM
Théophile
Théophile - avatar