trouble compiling

Im getting this messege when I try to compile this header file:
1>e:\program_5\program_5\word.cpp(200): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source? I added #include "StdAfx.h" to the file, but get the same messege. I am using Visual Studio 2010 Professional. What is wrong? Here is my code!
#ifndef WORD_H
#define WORD_H
#include "StdAfx.h"
#include <iostream>

using namespace std;

class node
{
public:
int data;
node *next;
};

class character
{
public:
char symbol;
character *next;
};

class WORD
{
public:
WORD(); // Default constructor to initialize the front of the list, and default values;
WORD(const string &); // Explicit-value constructor with string representing the word to be created;
void Print(); // Prints the nodes of WORD
~WORD(); // Destructor to de-allocate all memory allocated for the word.
bool IsEmpty(); // Check to see if the word A is empty; A is the current object
WORD(const WORD &); // Copy Constructor: Used during a call by value, return, or
initialization/declaration;
void AddWords(int); // Adds word B to the back of word A;
void Remove(int); // Deletes the first occurrence of word B from word A if it is there;
void RemoveAll(int); // Removes all occurrences of word B from word A if it is there;
int Length(); // Determines the length of a word
void Insert(); // Inserts word B into word A at position p;
bool IsEqual(); // Returns true if two words are equal; otherwise false;
void SetEqual(WORD &); // Assigns word B to word A
WORD & WORD ostream& operator<<(ostream& os, string& str); // Overload the insertion operator;
with chaining to print a word A;
string& operator=(const string& A); // Overload the assignment operator to take a string as an;
argument and assign its values to A;
private:
Node *front; // start of linked list
Node *back // pointer to last node;
Node current; // current node
}; // end class WORD

#endif;






Add it to your source file, not the header file. Also, ensure that it is included FIRST.
StdAfx.h must be on the top of your includes.
Topic archived. No new replies allowed.