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)
...
Type: Posts; User: hlam
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)
...
Hi Tapstop:
Thanks for your help. What does absolute values mean?
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...
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 ...
Thanks for your help.
Problem solved.
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') {
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
...
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...
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...
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>...