CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RoryKush420

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    8,209

    Re: C++ Formula Error - Confusing Output

    i was passing [row] instead of [r]. [row] is an empty field!
  2. Replies
    6
    Views
    8,209

    Re: C++ Formula Error - Confusing Output

    Didn't even notice that! Silly error.

    Corrected it:-

    if ( customers[row].hours >= 37.5 )
    {
    customers[row].ohours = customers[row].hours - 37.5;
    customers[row].hours = 37.5;
    }...
  3. Replies
    6
    Views
    8,209

    Re: C++ Formula Error - Confusing Output

    if 40 hours are worked, it should calculate 37.5 at normal rate and 2.5 at overtime rate of time and a half.
    if 37.5 hours are worked it should just calculate 37.5 * rate. However if 38 are worked,...
  4. Replies
    6
    Views
    8,209

    C++ Formula Error - Confusing Output

    I have attached the c++ code file and the header file I'm using to compile it.
    The program has to take in employee details, and work out a wage slip from there.
    The problem is from line 112 - 120,...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured