Search:

Type: Posts; User: hlam

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    3,376

    Hi Tapstop: To check absolute value I can use...

    Hi Tapstop:

    To check absolute value I can use either
    1. abs(param1, parm2) in #include<math.h>;

    or

    2. use if statement like below:
    if( -5.0 <= x && x <= 5.0)
    ...
  2. Replies
    8
    Views
    3,376

    Hi Tapstop: Thanks for your help. What does...

    Hi Tapstop:

    Thanks for your help. What does absolute values mean?
  3. Replies
    8
    Views
    3,376

    Hi all: Thanks for your help. What went wrong...

    Hi all:

    Thanks for your help. What went wrong with my code?

    I am expecting

    Enter the sales of month 1: $12000
    Enter the sales of month 4: $0
    Maximum sales rise: $6.000000
    Maximum sales...
  4. Replies
    8
    Views
    3,376

    Find max profit among input salary

    Hi:

    I want to inputed salaries from loop and compare the max profit and min profit among salaries. When exit the loop should display the largest profit and smallest profit.

    Problem occur when ...
  5. Thread: infinite loop

    by hlam
    Replies
    4
    Views
    2,155

    Thanks for your help. Problem solved.

    Thanks for your help.

    Problem solved.
  6. Thread: infinite loop

    by hlam
    Replies
    4
    Views
    2,155

    infinite loop

    Hi:

    Could someone please help?

    I want to check if input valid or not. But my code doesn't stop as expected.



    void validateSex(char sex) {
    if ( sex != 'M' || sex != 'F') {
  7. Replies
    7
    Views
    64,875

    compare n by 3 array

    hi:

    I would like to compare each row in an n by 3 array to see if each element in first row is equal to next row ie

    ...
  8. Replies
    7
    Views
    64,875

    compare 3 by 3 array

    hi:

    I would like to compare each row in an n by 3 array to see if each element in first row is equal to next row ie


    2 2 2 if not equal, show the row have the same element.
    3 5 4...
  9. Replies
    7
    Views
    64,875

    thanks for your help. It work. But now I want to...

    thanks for your help. It work. But now I want to modify it so now can compare each element to see if they are all equal.

    Th code work fine but want to know way to improve it. Can you show me how...
  10. Replies
    7
    Views
    64,875

    how to compare element in array

    hi:

    I want to compare values in the 3 element array and see if they are equal, if equal display message. The code compiled but result not expect. Can someone help




    #include <iostream>...
Results 1 to 10 of 10