+ 1

Please how can I validate my code ( like inputting scores) and also grading system in C++.

C++

27th Sep 2019, 11:55 PM
James Harrison
James Harrison - avatar
2 Réponses
+ 1
You need to use conditionals to filter out impossible values. For instance, if your scores can only be from 0 to 50, if ((score>=0)&&(score<=50))
28th Sep 2019, 1:38 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Thank you very much 😋
30th Sep 2019, 4:14 AM
James Harrison
James Harrison - avatar