So what's your question?
You need to show some code, not just a copy/paste of your assignment.
If you were hoping for a complete answer on a plate, you're in the wrong place.
So what's your question?
You need to show some code, not just a copy/paste of your assignment.
If you were hoping for a complete answer on a plate, you're in the wrong place.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.