Why won't this class work?

This is a discussion on Why won't this class work? within the C++ Programming forums, part of the General Programming Boards category; Here's the source... I'm working on a battle engine... why won't it load the battle object? Code: --CODE DELETED--...

  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, 12:01 AM
  4. Font class, why won't it work?
    By fusikon in forum Game Programming
    Replies: 2
    Last Post: 02-09-2003, 08:07 PM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 01:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21