Hey everyone,

First a little background. I just started learning C++ using C++ for Dummies 7in1 (from my search on this site I guess some people have said it isn't as good as other books and may teach bad habits but it is what I have). I've had Pascal back 9th (25yo grad student now) grade and have been doing html since 6th or 7th and have a firm grasp on it, CSS, and some javascript.

To the point... I've just reached the section of the book introducing classes. I am trying to run the code and running into compile errors. Running the code from the CD I receive the same errors (at least I think so). I believe the problem is in my header file establishing the class. Anyhow, here is my code, any help as to why it is giving me errors would be greatly appreciated!

Using Dev C++ btw, 5 beta 9.2

main.cpp
Code:
#include <cstdlib>
#include <iostream>
#include "Pen.h"

using namespace std;

int main(int argc, char *argv[])
{
    Pen FavoritePen;
    FavoritePen.InkColor = blue;
    FavoritePen.ShellColor = clear;
    FavoritePen.CapColor = black;
    FavoritePen.Style = ballpoint;
    FavoritePen.Length = 6.0;
    FavoritePen.Brand = "Pilot";
    FavoritePen.InkLevelPercent = 90;
    
    Pen WorstPen;
    WorstPen.InkColor = blue;
    WorstPen.ShellColor = red;
    WorstPen.CapCOlor = black;
    WorstPen.Style = felt_tip;
    WorstPen.Length = 3.5;
    WorstPen.Brand = "Acme Special";
    WorstPen.InkLevelPercent = 100;
    
    cout << "This is my favorite pen" << endl;
    cout << "Color: " << FavoritePen.InkColor << endl;
    cout << "Brand: " << FavoritePen.Brand << endl;
    cout << "Ink Level: " << FavoritePen.InkLevelPercent << "%" << endl;
    FavoritePen.write_on_paper("Hello I am a pen");
    cout << "Ink Level: " << FavoritePen.InkLevelPercent << "%" << endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}
Pen.h
Code:
#ifndef PEN_H
#define PEN_H
#include <string>

enum Color {blue, red, black, clear};
enum PenStyle {ballpoint, felt_tip, fountain_pen};

class Pen {
      public:
             Color InkColor;
             Color ShellColor;
             Color CapColor;
             PenStyle Style;
             float Length;
             string Brand;
             int InkLevelPercent;
             
             void write_on_paper(string words) {
                  if (InkLevelPercent <= 0) {
                                      cout << "Oops! Out of ink!" << endl;
                  }
                  else {
                       cout << words << endl;
                       InkLevelPercent = InkLevelPercent - words.length();
                  }
             }
             void break_in_half() {
                  InkLevelPercent = InkLevelPercent / 2;
                  Length = Length / 2.0;
             }
             void run_out_of_ink() {
                  InkLevelPercent = 0;
             }
};
#endif
TIA for any help!

-ck