Thread: Help writing small program

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    2

    Help writing small program

    I need to have a program written by tomorrow morning (thursday).

    I have a little bit of knowledge of classes and such but this is giving me problems..

    I need...

    A class called PETS.

    TWO derived classes called CAT and DOG.

    Constructors and Destructors.

    Overloaded Operators.

    The program can be basic and can perform any type of function... for example.. enter the type of pet you want (cat or dog) and then have it give a price for your choice...

    I have lts of trouble with the Overloaded Operators and such....

    if anyone can at least get me started with an outline on how it should work/ be written would be a great help!!!!

  2. #2
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    you need homework done by thursday...


    we need example code with specific questions on what seems to be the trouble.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  3. #3
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    Actually you just gave a good outline.
    A class called PETS.

    TWO derived classes called CAT and DOG.

    Constructors and Destructors.

    Overloaded Operators.
    Type out a class called PETS, along with an empty main function, and compile it. Once you get it to compile, move on to the next step, two derived classes called CAT and DOG. Get it to compile, move on to the next step. Add data to the classes, compile it, continue. Add overloaded operators, compile it, continue. If you have trouble with the overloaded operators, come here and show your work from the earlier steps and we can help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  2. Writing a Unix Search Program, some questions
    By Acolyte in forum C Programming
    Replies: 3
    Last Post: 09-23-2008, 12:53 AM
  3. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  4. Writing a C program for class....
    By Bizmark in forum C Programming
    Replies: 10
    Last Post: 11-13-2007, 10:31 AM
  5. Writing a checklist program for MTGO?
    By CrYpTiC in forum Game Programming
    Replies: 2
    Last Post: 04-08-2005, 09:46 PM