I'm working on a school assignment in C++, and I've implemented a header file with a constructor:
#include <iostream>
#include <stdlib.h>
using namespace std;
class Shopper
{
public:
Shopper::Shopper(int yrs_a_mbr, double av_mnth_prchs, char* sh_nm);
int years_a_member;
double avg_month_purchases;
double membership_cost;
double nominal_membership_cost;
private:
};
Whenever I compile, the compiler gives me an error saying "extra qualification error" on the line
Shopper::Shopper(int yrs_a_mbr, double av_mnth_prchs, char* sh_nm);
I've looked at various examples and I still can't see what I'm doing wrong.