C++ question of classes and file hamdling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C++ question of classes and file hamdling

Design a base class with name person which has following data: a) Name b) age c) Phone_no d) Address In the main function store the details of 5 persons by creating array of objects of the class, and then store these details on the file and then print the details after reading from the file.

4th Apr 2020, 8:26 AM
Abhishek Pandey
Abhishek Pandey - avatar
7 Answers
0
I have a problem in storing files in txt
4th Apr 2020, 8:29 AM
Abhishek Pandey
Abhishek Pandey - avatar
0
Can I get u r email id so that I can share a picture
4th Apr 2020, 8:32 AM
Abhishek Pandey
Abhishek Pandey - avatar
0
But I am Confuse right now please help me bro
4th Apr 2020, 8:33 AM
Abhishek Pandey
Abhishek Pandey - avatar
- 1
Man what is ur problem
4th Apr 2020, 8:28 AM
Abhay
Abhay - avatar
- 1
Share ur code
4th Apr 2020, 8:30 AM
Abhay
Abhay - avatar
- 1
Try to store in binary because I also created a school project as u say and more complex than urs and using binary mode instead of text mode really helps I dont know how but it works...... 😃
4th Apr 2020, 8:32 AM
Abhay
Abhay - avatar
- 1
I had messaged u
4th Apr 2020, 8:35 AM
Abhay
Abhay - avatar