Thread: Why won't this class work?

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question Why won't this class work?

    Here's the source... I'm working on a battle engine... why won't it load the battle object?

    Code:
    --CODE DELETED--
    Last edited by drdroid; 10-07-2002 at 06:48 PM.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    follow the code thread. I suggest you have a reread on classes before you try something of this magnitude...

    Create game;

    this calls your default constructor which does nothing....

    game.design(0);

    gets a name. sets some variables.

    end of program!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    thanks....

    sorry... kinda oblivious to that... just saw it now.. thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. CEdit::OnChar() won't work for derived class!
    By LuckY in forum Windows Programming
    Replies: 0
    Last Post: 02-28-2003, 01:01 AM
  4. Font class, why won't it work?
    By fusikon in forum Game Programming
    Replies: 2
    Last Post: 02-09-2003, 09:07 PM