Thread: Instantiation with CodeWarrior

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    1

    Instantiation with CodeWarrior

    Greetings from North Texas! Recently I acquired the Learning Edition of Metrowerks' CodeWarrior IDE. I've been trying to run some simple programs on it (based on Sam's Publishing's "Teach Yourself C++ in 21 Days"). I've been trying some simple instantiation of a class, and I often get the "'';' expected" error message even though the code appears to be correctly punctuated. Have any of you seen this particular problem before?

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    class MYCLASS
    {
       public:
          MYCLASS();
    }; <---
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I don't have the book with me, but doesn't Jesse Liberty have a web site where you can download the code? It's better to type-in the code yourself, but you can try his code if you can't figure out the problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 08-12-2007, 01:02 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. question about .net to 6.0 change causing errors
    By jverkoey in forum C++ Programming
    Replies: 17
    Last Post: 03-23-2004, 10:45 AM
  4. Operator overloading in template classes
    By moejams in forum C++ Programming
    Replies: 5
    Last Post: 07-21-2003, 05:16 PM
  5. Codewarrior
    By m.albert in forum C++ Programming
    Replies: 1
    Last Post: 03-02-2003, 04:02 AM