Thread: Trouble with overloading operators in a class with composition relationship

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    In your print* functions, you consistently forget to actually write out the values you calculate.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    Registered User
    Join Date
    Sep 2007
    UGH!!! THAT IS IT!!! I have been staring at this code for hours trying to figure out what the problem was. So simple...I feel foolish.

    Thanks, DWKS.

    BTW I have visited your links, helpful, thanks.

    Thanks CornedBee, That is what DWKS just sugested, and ... something so simple and should be caught so easily, yet I have been staring at it for so long, I couldn't see it.

    Yahoo! This test question is complete, I get to move on to the rational fraction class code.

    Thank you ALL.

    The help from this forum will save me in this class, if I can be saved!

    Lord knows it won't be because of help from the instructor!
    Last edited by CornedBee; 11-10-2007 at 05:34 PM. Reason: Merged three consecutive posts into one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bolean Operators hurt my head. (Trouble understanding) :(
    By Funcoot in forum C++ Programming
    Replies: 3
    Last Post: 01-20-2008, 07:42 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Overloading compound operators?
    By Nyda in forum C# Programming
    Replies: 2
    Last Post: 04-28-2004, 05:42 AM
  4. Overloading operators...
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 11-21-2001, 08:24 PM
  5. Overloading Operators
    By Raven Arkadon in forum C++ Programming
    Replies: 1
    Last Post: 10-24-2001, 10:24 AM