getting a string to work in password function

后端 未结 1 1319
渐次进展
渐次进展 2021-01-29 13:28

Hi apologies for my poor explanation I\'m very new to this. I am currently working on a password function but I\'m having problems. I have set the account name to string \"john\

1条回答
  •  时光取名叫无心
    2021-01-29 14:06

    1. Add std:: to your string declarations (so you will have std::string).
    2. After while loop there's end of function login without any value return. Add return true there. Also always build with warnings enabled!

    0 讨论(0)
提交回复
热议问题