Trouble with overloading operators in a class with composition relationship

This is a discussion on Trouble with overloading operators in a class with composition relationship within the C++ Programming forums, part of the General Programming Boards category; In your print* functions, you consistently forget to actually write out the values you calculate....

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

    "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
    Location
    Arizona
    Posts
    164
    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.

Page 2 of 2 FirstFirst 12
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, 06: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, 11:24 AM

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