Originally Posted by
Daved
>> Am I missing a key word?
Did you specify -c as ZuK showed??
Opps. Neglected to notice that.
Thats fine now
-------------------------------------
Im really not sure what im doing.. Headers confuse me ATM.
SavingAccounts.cpp
Code:
#include <iostream>
using namespace std;
class SavingAccounts{
public:
void withdrawal(float amount);
};
void SavingAccounts::withdrawal(float amount){
if (balance < amount){
cout << "Insuffucent funds in saving account: balance " << balance
<< ", withdrawal "
<< "\n";
}
}
CheckAccount.cpp
Code:
#include <iostream>
using namespace std;
class CheckAccount.{
public:
void withdrawal(float amount);
};
void CheckAccount.::withdrawal(float amount){
if (balance < amount){
cout << "Insuffucent funds in check account: balance " << balance
<< ", withdrawal "
<< "\n";
}
}
Main.cpp
Code:
#include <iostream>
#include "Savings.cpp"
#include "Checking.cpp"
using namespace std;
It would surprise me if this is totally wrong