i write a programme to following question but it does not run correctly .what is wrong with it?
question :
A file is required to maintain the salary of employees at ABC Company. The program
should allow the user to enter at least three (3) records of new employee data to the file.
The file should accept Employee number, Employee name and the Basic salary and
calculate the Net Salary and display it.
The formula required to calculate the Net Salary is Net Salary = Basic Salary + 2500
Write a complete C++ program for the above given tasks.
Works for me. Remember, you are outputting into file, not on screen.
And it is int main(), not void main(). You should probably change compiler if it allows you to do that.