Lost again...Just trying to "tie" a header file to a .cpp file, but I keep getting a 'need ;' before '{' ..... in my .cpp file at LIST::LIST()
{
x = 0;
}
Here are both files that I am fooling with:
#ifndef LISTS_H
#define LISTS_H
#include <iostream>
using namespace std;
int x;
typedef int dataItem;
class LIST
{
public:
LIST();
int getlength() const;
private:
int size;
};
#endif
#include "LISTS.h"
int main()
{
LIST::LIST()
{
x=0;
}
Thanks for any help please!!>>>>