void Seller::print() const
{
cout << fixed << setprecision(2);
cout << setw(30) << left << Name << right << setw(9) << SalesTotal;
}
//second file Seller3.h
#ifndef SELLER3_H
#define SELLER3_H
//*****************************************************************
// FILE: Seller.h
// AUTHOR: your name
// LOGON ID: your z-ID
// DUE DATE: due date of assignment
//
// PURPOSE: Contains the declaration for the Seller class.
//*****************************************************************
class Seller
{
// Data members and method prototypes for the Seller class go here
public:
Line 33: You're trying to return a constchar * in a function that is typed char *
Change line 33 to: constchar* Seller::getName() const
You need to change the declaration also.
Line 35: Not sure what you're trying to do here. If you're trying to do a cast, you need parens around it, although the cast is not needed. Also, the reference to Name should be a simple array reference, not a function call. return Name;
Line 45: You've defined getSalesTotal as a const function. That means you can't modify the class. Remove the const on line 43 and in the class delcaration also.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.