To create a file, use either the ofstream or fstream class, and specify the name of the file . To write to the file, use the insertion operator ( << ).
Read moreHow do you read a file in C ++ program?
In order for your program to read from the file, you must:
Read moreHow is salary calculated for employees in C++?
Formula’s :- Gross Salary = Basic + Da + Hra + Ma . Deduction = Gross Salary – Pf – Pt – It. Net Salary = Gross Salary – Deduction. Logic:- For finding a gross salary of Employee we need to calculate DA and HRA then Sum Of Basic Salary + HRA + DA.
Read more