Hi all,
I am really having some problems, have worked on it for 4 days now.
CODE
#include <iostream>
#include <iomanip>
#include <math.h>
#include <stdlib.h>
#include<cctype>
#include <stdio.h>
using namespace std;
class mortgageCal
{
private:
double intYear;
public:
class mortgageCal () : intYear(){};
double loanAmt(); // amount of the loan
double term(); // term in years
double numMonths(); // term converted to months
double intMonth(); // interest converted to months
double paymentAmt(); // variable for monthly payment
double balance(); // running total
double principleAmt(); // amount towards loan
double amtMortgage(); // total amount to be paid back
};
template<class T>
double getIntInPut(T loanAmt, T term, T intYear);
int main()
{
mortgageCal mortCalc;
I have to have the class and under the main when I called the
mortgageCal mortCalc;
I thought that it would include my public file but when I compile it I get "undeclared identifier". Can I get someone to push me in the right direction to get the public files into my main folder. I just can't seem to figure out how, like I said, I have been working on this for 4 days now.
Thanks