Explain alternative with the help of code
Is there any alternative for size_t in this program
I wrote the above code but its not running.Please correct the code and tell me what did i do wrong.Link:https://ide.codingblocks.com/s/313672
Hey please explain what wrong did i do in code.The link is in above comment
@KetanPandey, you have to pass student as const while overloading == i.e.
replace
bool operator ==(Student &s) const
with
bool operator ==(Student const &s) const
in line 22.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.