#include "stdafx.h"
class amfluid
{
int gallon;
int quart;
int pint;
void reduce(void);
public:
amfluid(int gall, int quar, int pin);
int getgallon(void);
int getquart(void);
int getpint(void);
void addpint(void);
};
I get an error that says that pint is an undeclared identifier inside of the reduce function that starts on line 14. It also doesn't compile beyond that for that very reason. obviously I have no idea why this is, can anyone help me?
Not sure, but it seems you make have declared pint inside the context of the amfluid class. But reduce() does not include amfluid in the header of the definition.
eg