error: ‘shopkeep’ was not declared in this scope
error: expected `;' before ‘crunchy’
error: ‘crunchy’ was not declared in this scope
shopkeep.h
#ifndef _SHOPKEEPH_
#define _SHOPKEEPH_
class shopkeep
{
private:
int x;
int y;
int charStatus;
public:
shopkeep();
void handleUser();
void show();
};
shopkeep::shopkeep()
{
x = 600;
y = 360;
charStatus = CRUNCHY_DOWN;
}
void shopkeep::handleUser()
{
/* blah */
}
void shopkeep::show()
{
/* blah */
}
#endif
#include "main.h"
#include "character.h"
#include "shopkeep.h"
#include "timer.h"
/* setup stuff */
int main(int argc, char* argv[])
{
/* initialization stuff */
timer fps;
character hero;
shopkeep crunchy; //errors
/* game stuff */
crunchy.show(); //error
/* more game stuff */
return 0;
}