C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 8.4, Problem 4E
Program Plan Intro

Program plan:

  • Include library files for various operations.
  • Declare required variables.
  • Declare two objects of ifstream and ofstream.
  • Declare two function header, with name,getOpen() and inOut.
  • Define both the declared functions.
  • Use if statement to check the specific file.
  • Open the file, by using the open() method.
  • int main() function is used to perform all the tasks.
  • Display the calculated results to the user.

Program Description:The main purpose of the program is to modify the program 8.9 so that if the entered filename exists then an appropriate message is displayed and an option is provided to user for entering a new filename or to edit the existing one.

Blurred answer
Students have asked these similar questions
How does encryption prevent a hacker from getting your data
what is one way to secure a phone
why are SMishing attacks particularily effective?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning