Quote:
Actually i am new to cpp so i am still trying it.
Either you are absolute beginner, and learning with personal projects is the wrong way to learn. Advice: find some tutorial and do every exercises.
Either you are not so beginner, and you should be able to do this homework by checking your course.
Quote:
Can any one help me
Here, we will help you to fix your code, but you need to show your code and express the problem.
We don't do your homework. Because it will not help you to learn.