C++ strings | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

C++ strings

Hi guys I Need a help. I have a string like this string bornDate = "01/01/2010"; I want to access to the 2010 and change It into integer value and store It in a variable. How can I Do It?

14th Mar 2021, 8:43 PM
Hammad Yaqub
Hammad Yaqub - avatar
2 ответов
+ 2
I'm a newbie with C++ so there can be a better solution. However, here's the code: https://code.sololearn.com/c64Mjexjhc3h/?ref=app
14th Mar 2021, 9:28 PM
ogoxu
ogoxu - avatar
+ 1
Ok thanks
14th Mar 2021, 10:39 PM
Hammad Yaqub
Hammad Yaqub - avatar