@aalok
This project has to be done in c++. Thank you though.
@mora14,
i think the second one is in C++. :
@aalok,
It works for about one step and then it gets stuck on 5.
??... but on my PC, it's working fine...
I don't know. It may be my compiler or something. Or maybe i'm doing something wrong. I'm gonna keep working with it.