+ 2

Why warnings? how resolve them?

i can't figure out why its giving warnings and how to reolve. please tell me what these warnings saying and how to resolve??? https://code.sololearn.com/c7a11a23a229

11th Jun 2021, 6:55 AM
saurabh
saurabh - avatar
4 Respuestas
+ 5
https://stackoverflow.com/questions/24285112/why-must-initializer-list-order-match-member-declaration-order have a look at this
11th Jun 2021, 11:18 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
the warning shows that your int initializes before that string.. here's a fix https://code.sololearn.com/cy9XhdHHXm9C/?ref=app
11th Jun 2021, 7:10 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
Prashanth Kumar [back again] Thanks bro... But still it's not clear to me🥺
11th Jun 2021, 12:10 PM
saurabh
saurabh - avatar
0
Prashanth Kumar [back again] thanks ..... Please tell me why order for initialization matters?
11th Jun 2021, 7:28 AM
saurabh
saurabh - avatar