Write a program which has a class named Student. The class should have appropriate data members to store the enrollment number, name and email of a student.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.3: Adding Class Functions
Problem 8E
icon
Related questions
Question

Write a program which has a class named Student. The class should have appropriate data members to store the enrollment number, name and email of a student.

Write an appropriate function for taking the basic information like enrollment number, name and email from user. In addition, write another function to append the data to a text file on hard disk. Furthermore, there should be a function which displays the content of the file on console.

In the main function create objects of the above class and call the appropriate functions to add information of a student, store it in a file and display on the console.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT