//Member functions for bank class
#include "updater.h"
updater::updater()
{
day = 0;
}
updater::~updater()
{
}
int nextDay(execNextDay order)
{
cout << "\n\nDay " << day << endl << endl;
day=day+order.numDays;
}
returnFinAssets finAssets()
{
returnFinAssets reply;
reply.amtGold = mkt.amtGold;
reply.amtSilv = mkt.amtSilv;
reply.amtPlat = mkt.amtPlat;
reply.money = mkt.money;
return returnFinAssets;
}
Here's the errors:
updater.cpp: In function ‘int nextDay(execNextDay)’:
updater.cpp:18: error: ‘day’ was not declared in this scope
updater.cpp: In function ‘returnFinAssets finAssets()’:
updater.cpp:26: error: ‘mkt’ was not declared in this scope
updater.cpp:30: error: expected primary-expression before ‘;’ token