Error Checking in C++ Eclipse
When checking code i keep getting an "undefined reference to `OutputActualBill(std::basic_ostream<char, std::char_traits<char> >&, char, int, int, double, double, int, double, double, double, double, double, double, double&, double&)" error message. Need help in fixing error. A txt file with the approiate corrections might be helpful in explaining my error.
I'm heading to work and wont be back till 8 hours from now hope someone can help...
s
Function Prototype
void OutputActualBill(ostream &,
char packageType,
int package_a_access_hours,
int package_b_access_hours,
double package_a_excess_hourly,
double package_b_excess_hourly,
int hours_utilized, double base_charge,
double excess_charge, double total_sales_tax,
double total_due_package_a,
double total_due_package_b,
double total_due_package_c,
double &savings_package_b,
double &savings_package_c);
Function Call
OutputActualBill(cout,
packageType,
package_a_access_hours,
package_b_access_hours,
package_a_excess_hourly,
package_b_excess_hourly,
hours_utilized, base_charge,
excess_charge, total_sales_tax,
total_due_package_a,
total_due_package_b,
total_due_package_c,
savings_package_b,
savings_package_c);
Fuction Detail: I'm still working on the detail....
void OutputActualBill(ostream &out,
char packageType,
int package_a_access_hours,
int package_b_access_hours,
double package_a_excess_hourly,
double package_b_excess_hourly,
int hours_utilized, double base_charge,
double excess_charge, double total_sales_tax,
double total_due_package_a,
double total_due_package_b,
double total_due_package_c,
double savings_package_b,
double savings_package_c)
{
// write definition for OutputActualBill
out << "---------------------------------------" << endl
<< "Package: " << packageType
<< endl
<< "Base hours:";
if (packageType == 'A')
{
out << setw(28) << package_a_access_hours;
}
else if (packageType == 'B')
{
out << setw(28) << package_b_access_hours;
}
else
{
out << setw(28) << "unlimited";
}
out << "Hourly rate for excess hours:";
if (packageType == 'A')
{
out << setw(10) << package_a_excess_hourly;
}
else if (packageType == 'B')
{
out << setw(10) << package_b_excess_hourly;
}
else
{
out << setw(10) << "N/A";
}
}
13 years ago
5
Purchase the answer to view it

- The Income Inequality Debate
- help physical science
- English Essay Assignment!!!
- Management Information Systems
- 2. Why is the monopolistic competitor’s demand curve more elastic than a pure monopolist’s, but less elastic than a pure competitor’s? What factors determine the price elasticity of demand for a monopolistic competitor?
- Done
- Need in an hour..Only excel solver result would do
- What action did hitler take in defence of the Versailles treaty? how did he explain his action
- 2 dq questions for critical thinking class
- Montana Matt’s Golf Inc.