Hello all, first time forum user so this is all abit intimidating and been learning C++ for a few weeks now.
Been trying to create a small console program that takes 2 values which are in separate class's and multiply them to get a total value. It then calculates these two numbers in a class and displays the total in the main.
I've been reading the tutorials and got a Sams book but can't seem to quite figure out how wrong im doing it.
I'm struggling with:
-Getting the values from the value class's into multiply class
-Constructing a way to calculate the total
//HEADER//
class FirstValue
{
protected:
int boxes;
public:
void setAmountOfBoxes(const int& aBoxes);
int getAmountOfBoxes();
int calculateTotalEggs(int tempBoxes, int tempEggs);
//This class will be used to calculate your total amount of eggs by using pointers
//to assign values to the tempBoxes & tempEggs, then use a method to take these 2
//values in its parameter to calculate how many eggs you have.