I have this code:
Code:
#include<iostream>
#include<fstream>
using namespace std;

ifstream fin("date.txt");

class BankLoanApproval{
	int records;
	double yr_income;
	double loan_amount;
	int term_of_loan;
	int cust_status;
public:
	
	BankLoanApproval (int r, double y, double la, int t, int cs); 
	int GetRecords() {return records;}
	double GetIncome() {return yr_income;}
	double GetLoanAmount() {return loan_amount;}
	int GetTerm() {return term_of_loan;}
	int GetStatus() {return cust_status;}
	void SetRecords(int n_records)
	{
		records=n_records;
	}
	void SetIncome(double new_income)
	{
		yr_income=new_income;
	}
	void SetLoan(double new_amount)
	{
		loan_amount=new_amount;
	}
	void SetTerm(int term)
	{
		term_of_loan=term;
	}
	void SetStatus(int c_status)
	{
		cust_status=c_status;
	}
};



void main()
{
	if (!fin)
	{
		cout << " Can not Open the input file with customer data!!"<< endl;
		exit(1);
	}

	int rec;
	double income;
	double amount;
	int term;
	int status;
	fin >> rec >> income >> amount >> term >> status;
	BankLoanApproval loan(rec, income, amount, term, status);
	loan.SetRecords(rec);
	cout << loan.GetRecords();

}
This compile perfectly but when I want to run it I get the following error, can anyone help me I can not figure it out what it is cousing the problem or error, thanks.

Code:
Linking...
BankLoan.obj : error LNK2001: unresolved external symbol "public: __thiscall BankLoanApproval::BankLoanApproval(int,double,double,int,int)" (??0BankLoanApproval@@QAE@HNNHH@Z)
Debug/assigment2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

assigment2.exe - 2 error(s), 0 warning(s)
&#91;code]&#91;/code]tagged by Salem