Closed hribo98 closed 5 years ago
You can use stoi() to directly cast to int. In Student.h line : 32 data.age = atoi(age.c_str()); --> data.age = stoi(age);
http://www.cplusplus.com/reference/string/stoi/
Also stol (long), stoll(long long)...
Поздрави, Ицо
Thank you for your advice! I will correct it!
You can use stoi() to directly cast to int.
In Student.h line : 32
data.age = atoi(age.c_str()); --> data.age = stoi(age);
http://www.cplusplus.com/reference/string/stoi/
Also stol (long), stoll(long long)...
Поздрави, Ицо