Congratulations, Your code is rusted!!
That means it uses the style of coding that was used aprox 13 years ago. You are using all the deprecated and non portable headers. You are using void main, which is a sin.
In short you are practicing everything that a Standard C++ developer should not.
I bet you would be using the old, crappy, good for nothing Turbo C++ compiler.
Here is
a guide which helps you to migrate to Standard C++ (the C++ which we use today)
If you are a school student, and your teacher teaches you rusted C++, you may still learn the standard C++ and use the rusted counterparts in your school.
The proper code tags are:
[code=cplusplus]
//your code goes here
[/code]
>which needs a lot of help.
What do you mean by 'lot of help'? We won't be correcting and rewriting the program for you. If you are unable to find the errors in such a trivial code, consult
a good text book about C++
And as a Side note, did you bothered to read:
Announcement: We only give homework help to those who show effort
Read Me: Read This Before Posting