read/write problem

Hello guys i have to do a code with a class of 3 different fields of any data type,and 2 constructors(one default and one with the parameters )after that program should ask the user the file to open,program opens the file with the name provided in read mode and in a loop till the file ends,and creat the subsequent value of the class and then add those values to a table,printing them using tables then program asks user if he wants to change them or add new object.then output file in write mode
one line per object

#include "stdafx.h"
#include <iostream>
using namespace std;

class person {
char fName , mName, Iname ;
public:
Person();
Person(fName,mName,Iname);
}person ;

~person(){
delete person(fName,mName,iname);
}

person::Person(){
fName= "Jaime";
mName= "Fernandes";
Iname= "Molian";
}
person::Person(char fn ,char mn, char ln){
fName= fn;
mName = mn;
iName = ln;
}

void main()
{


this is my code till now any suggestions?
Last edited on
Review all of your previous lessons. Particularly any dealing with strings and new/delete.
Topic archived. No new replies allowed.