Other Parts Discussed in Thread: TM4C123GH6PM
Tool/software:
I'm getting the error: "#20 identifier "class" is undefined" for this class. I'm also getting the error: "#66 expected a ";"" as well in this file. Classes are a normal part of C++. Why is something so simple not working?
Buffer.h:
#ifndef BUFFER_H_
#define BUFFER_H_
#define MAX_BUFFER_SIZE 256
class Buffer
{
private:
char* items;
int count;
int size;
int head;
int tail;
public:
Buffer();
Buffer(int);
~Buffer();
void wipe();
bool isEmpty();
bool isFull();
char dequeue();
bool enqueue(char);
};
#endif /* BUFFER_H_ */



