Original Post
This error honestly makes no sense and is best explained by the code and compiler output.
When I code:
The compiler returns:
Thanks and I hope that you guys can help with this most peculiar error.
When I code:
#ifndef CLASSES_H
#define CLASSES_H
#include "SDL.h"
class Player
{
private:
//position and velocity variables
SDL_Rect playerBox;
int xVel, yVel;
//animation frame
int frame;
public:
//basic functions
void handle_input;
void move;
void render;
};
#endif
The compiler returns:
error C2182: 'handle_input' : illegal use of type 'void'
error C2182: 'move' : illegal use of type 'void'
error C2182: 'render' : illegal use of type 'void'
Thanks and I hope that you guys can help with this most peculiar error.