I need help with real esate management system

Can anyone please help me out to run this program ...please I need help .. please be kind help me out here ;)

#include<iostream>
#include<fstream>
#include<cctype>
#include<iomanip>
#include<string>
using namespace std;


class property
{
int name, choice,select, type,account, PropertyNumber,acno,num, YearBuilt, ZipCode, Bedrooms,Type, Stories, MaxOccupancy,style,Marketvalue;
char Condition,cont;
string Style, StreetAddress, City, State;
double RentPerSquareFoot, Bathrooms;
public:
void create_property(); //function to get data from user
void show_property() const; //function to show data on screen
void modify(); //function to add new data
void dep(int); //function to accept amount and add to balance amount
void draw(int); //function to accept amount and subtract from balance amount
void report() const; //function to show data in tabular format
int retacno() const; //function to return account number
//int retdeposit() const; //function to return balance amount
//char rettype() const; //function to return type of account
}; //class ends here

void property::create_property()
{
cout<< "Select 1 for Residential or 2 for Commercial\n";
cin>> select;
if (select == 1);
cout<< "What is the style?\n?";
cin>> style;

cout<< "What is the Property Number?\n";
cin>> PropertyNumber;

cout<< "What is the Street Address?\n";
cin.clear();
fflush(stdin);
getline(cin, StreetAddress);

cout<< "What City is it in?\n";
cin.clear();
fflush(stdin);
getline(cin, City);

cout<< "What state is it in?\n";
cin.clear();
fflush(stdin);
getline(cin, State);

cout<< "What is the zip code of the property\n?";
cin>>ZipCode;

cout<< "How many Bedrooms does the property have?\n";
cin>> Bedrooms;

cout<< "How many bathrooms does the property have?\n?";
cin>>Bathrooms;

cout<< "How many stories is the property?\n?";
cin>> Stories;

cout<< "What condition is the property in?\n" ;
cin>> Condition;

cout<< "What year was the property built?\n";
cin>>YearBuilt;

cout<< "What is the Market Value of the property?\n";
cin>> Marketvalue;

cout<<"\n\n\nProperty Created..";
}

void property::show_property() const
{
cout<<"\nMLS No. : "<<endl;
cout<<"\nAccount Holder Name : ";
cout<<name;
cout<<"\nType of Account : "<<type;
//cout<<"\nBalance amount : "<<deposit;
}


void property::modify()
{
cout<<"\nMLS No. : "<<acno;
cout<<"\nModify Account Holder Name : ";
cin.ignore();
//cin.getline(name,50);
cout<<"\nModify Type of Account : ";
cin>>type;
type=toupper(type);
cout<<"\nModify Balance amount : ";
//cin>>deposit;
}


void property::Printlist()
{
//
}

void property::draw(int x)
{

}

void property::report() const
{
cout<<acno<<setw(10)<<" "<<name<<setw(10)<<" "<<type<<setw(6)<<endl;
}

int property::retacno() const
{
return acno;
}

//int property::retdeposit() const
//{
// return deposit;
//}

//char property::rettype() const
//{
// return type;
//}


void write_property(); //function to write record in binary file
void display_sp(int); //function to display account details given by user
void modify_property(int); //function to modify record of file
void delete_property(int); //function to delete record of file
void display_all(); //function to display all account details
void deposit_withdraw(int, int); // function to desposit/withdraw amount for given account
void intro(); //introductory screen function



int main()
{
char ch;
int num;
intro();
do
{
system("cls");
cout<<"\n\n\n\tMAIN MENU";
// cout<<"\n\n\t01. NEW ACCOUNT";
// cout<<"\n\n\t02. DEPOSIT AMOUNT";
// cout<<"\n\n\t03. WITHDRAW AMOUNT";
// cout<<"\n\n\t04. BALANCE ENQUIRY";
// cout<<"\n\n\t05. ALL ACCOUNT HOLDER LIST";
// cout<<"\n\n\t06. CLOSE AN ACCOUNT";
// cout<<"\n\n\t07. MODIFY AN ACCOUNT";
cout <<"- Real Estate Program -\n\n"

<<" 1.Enter new listing\n"

<<" 2.Print listing\n"

<<" 3.Delete listing\n"

<<" 4.Save listing briefs to file \n\n"

<<"Enter Selection: ";
cout<<"\n\n\t5. EXIT";
cout<<"\n\n\tSelect Your Option (1-5) ";
cin>>ch;
system("cls");
switch(ch)
{
case '1':
write_property();
break;
case '2':
cout<<"\n\n\tEnter The listing No. : "; cin>>num;
deposit_withdraw(num, 1);
break;
case '3':
cout<<"\n\n\tEnter The account No. : "; cin>>num;
deposit_withdraw(num, 2);
break;
case '4':
cout<<"\n\n\tEnter The account No. : "; cin>>num;
display_sp(num);
break;
case '5':
display_all();
break;
case '6':
cout<<"\n\n\tEnter The account No. : "; cin>>num;
//delete_mls(num);
break;
case '7':
cout<<"\n\n\tEnter The account No. : "; cin>>num;
//modify_account(num);
break;
case '8':
cout<<"\n\n\tThanks for using bank managemnt system";
break;
default :cout<<"\a";
}
cin.ignore();
cin.get();
}while(ch!='8');
return 0;
}

void write_propery()
{

}


void display_sp(int n)
{
{
cout<<"File could not be open !! Press any Key...";
return;
}
cout<<"\nBALANCE DETAILS\n";
//while(inFile.read(reinterpret_cast<char *> (&ac), sizeof(account)))
{
//if(ac.retacno()==n)
{
// ac.show_account();
// flag=true;
}
}
// inFile.close();
//if(flag==false)
cout<<"\n\nAccount number does not exist";
}




void modify_account(int n)
{
bool found=false;
//account ac;
fstream File;
File.open("account.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
return;
}
while(!File.eof() && found==false)
{
//File.read(reinterpret_cast<char *> (&ac), sizeof(account));
//if(ac.retacno()==n)
{
// ac.show_account();
cout<<"\n\nEnter The New Details of account"<<endl;
//ac.modify();
int pos=(-1)*static_cast<int>(sizeof(property));
File.seekp(pos,ios::cur);
// File.write(reinterpret_cast<char *> (&ac), sizeof(account));
cout<<"\n\n\t Record Updated";
found=true;
}
}
File.close();
if(found==false)
cout<<"\n\n Record Not Found ";
}


void delete_property(int n)
{
//account ac;
ifstream inFile;
ofstream outFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
outFile.open("Temp.dat",ios::binary);
inFile.seekg(0,ios::beg);
// while(inFile.read(reinterpret_cast<char *> (&ac), sizeof(account)))
{
//if(ac.retacno()!=n)
{
// outFile.write(reinterpret_cast<char *> (&ac), sizeof(account));
}
}
inFile.close();
outFile.close();
remove("account.dat");
rename("Temp.dat","account.dat");
cout<<"\n\n\tRecord Deleted ..";
}

void display_all()
{
//account ac;
ifstream inFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
cout<<"\n\n\t\tACCOUNT HOLDER LIST\n\n";
cout<<"====================================================\n";
cout<<"A/c no. NAME Type Balance\n";
cout<<"====================================================\n";
//while(inFile.read(reinterpret_cast<char *> (&ac), sizeof(account)))
{
//ac.report();
}
inFile.close();
}



void deposit_withdraw(int n, int option)
{
int amt;
bool found=false;
//account ac;
fstream File;
File.open("account.dat", ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
return;
}
while(!File.eof() && found==false)
{
// File.read(reinterpret_cast<char *> (&ac), sizeof(account));
//if(ac.retacno()==n)
{
//ac.show_account();
if(option==1)
{
cout<<"\n\n\tTO DEPOSITE AMOUNT ";
cout<<"\n\nEnter The amount to be deposited";
cin>>amt;
//ac.dep(amt);
}
if(option==2)
{
cout<<"\n\n\tTO WITHDRAW AMOUNT ";
cout<<"\n\nEnter The amount to be withdraw";
cin>>amt;
//int bal=ac.retdeposit()-amt;
//if((bal<500 && ac.rettype()=='S') || (bal<1000 && ac.rettype()=='C'))
cout<<"Insufficience balance";
//else
//ac.draw(amt);
}
//int pos=(-1)*static_cast<int>(sizeof(ac));
//File.seekp(pos,ios::cur);
// File.write(reinterpret_cast<char *> (&ac), sizeof(account));
cout<<"\n\n\t Record Updated";
found=true;
}
}
File.close();
if(found==false)
cout<<"\n\n Record Not Found ";
}
void intro()
{
cout<<"\n\n\n\t Welcome";
cout<<"\n\n\n\t To";
cout<<"\n\n\n\tReal Estate";
cout<<"\n\n\tMANAGEMENT";
cout<<"\n\n\t SYSTEM";


cin.get();

return;
}
http://www.cplusplus.com/forum/general/215727/
Please, go back to the link above to continue with your real state project. This is a double post. It is frowned upon. Thanks.
Topic archived. No new replies allowed.