CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 18

Threaded View

  1. #11
    Join Date
    Sep 2007
    Posts
    10

    Re: Help w/ .cpp...

    Below are some functions, I havent tested out all parts of my .cpp file yet but I am getting ready to do so.

    I also have question about bool operator ==. The requirement is:
    -The return value is true if s1 and s2 have the zero
    length. Also, if the length is greater than zero, then s1 and
    s2 must have the same length, the same mean, the same
    minimum, the same maximum, and the same sum.

    Code:
    stats::statistician()
    	{
    		reset(); //call reset func
    	}
    void stats::reset()
    	{
    		
    		total = count = 0;
    		tiniest = DBL_MAX; //**this was an example, why is this set to DBL_MAX? 
    		largest = DBL_MIN;
    		
    	}
    I need some help in understanding what the bool operator== is suppose to do and in general what are operator+ or operator* used for?

    Thanks!
    Last edited by GaganW18; September 18th, 2007 at 11:22 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured