[try Beta version]
Not logged in

 
Please help find problem

Jun 18, 2013 at 5:52am
I am pretty new to this and I have never seen this and cant really find out what it means when I build the program it is saying up-to-date ?? what does that mean, what am I doing wrong ?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// CS 1361
// Assignment 10

#include <iostream>
using namespace std;

int main()
{
	int integerA;
	int integerB;
	int Min;
    int Max;
// get integer A
cout << ("Enter an Integer: ");
cin >> integerA;

// get integer B
cout << ("Enter an Integer: ");
cin >> integerB;

    if (integerA>integerB) // checking if integerB is bigger than integerA
    {
       Max = integerA ;
	   Min = integerB ;
	}

   if (integerB>integerA)  // checking if integerA is bigger than integerB
	{
       Max = integerB ;
	   Min = integerA ;
	}
cout<< ("The Highest Number of both integerA and integerB is = ") <<Max;

cout<< ("The Lowest Number of both integerA and integerB is = ") <<Min;

	return 0;
}
  
Jun 18, 2013 at 5:54am
It says up-to-date because you didn't change anything between builds. If there is a change that you made between builds, and it still says up-to-date, then you are somehow messing up what code you're building in the first place.
Jun 18, 2013 at 6:11am
it is just suppose to display the maximum and minimum of two numbers that you enter, so max being the largest and min being the smallest. I believe my code is correct because if I rebuild It its says succeeded, then if I type in numbers on the display screen it tells me for example if I end 7 and 13 it says max 13 min 13 ??? and I don't know why
Jun 18, 2013 at 7:03am
showells wrote:
if I enter 7 and 13 it says max 13 min 13 ???


Enter an Integer: 7   
Enter an Integer: 13
The Highest Number of both integerA and integerB is = 13
The Lowest Number of both integerA and integerB is = 7
Jun 18, 2013 at 9:59am
It would appear that you have mucked up your IDE or compiler somehow, and are using an outdated version of your code with that issue. The code works fine as-is.
Jun 18, 2013 at 10:34am
do a clean and rebuild.
Topic archived. No new replies allowed.