Explore BrainMass
Share

C++ File Input Output and Functions Using Dev C++

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

I'm having trouble with a program that uses functions. It reads data from a file and then we are to write it out to a file. I'm having trouble manipulating the data. I will attach the code I have along with the input file and instructions. I am using dev c++
(my output to screen was for me to check my program. I have not written it to a file yet) I plan on writing it to the file "salary.txt". We cannot use arrays and we must use a switch.

© BrainMass Inc. brainmass.com March 22, 2019, 1:03 am ad1c9bdddf
https://brainmass.com/computer-science/cpp/file-input-output-functions-dev-521747

Attachments

Solution Preview

Please see attached files for the modified C++ program and the screen capture to see that the program works. This is modified using Dev c++.

As per checking how the results ...

Solution Summary

This solution provides a detailed, step-by-step explanation of the given programming language problem regarding C ++.

$2.19