#include <cstdlib>
#include <string>
#include <iostream>
#include <ctime>
usingnamespace std;
/*
* main entry point
*/
int main(int argc, char** argv) {
void countDown(int, int);
int high, low;
cout << "I will count down from the higher number you enter " <<
for(x = high; x = low; --x)
cout << x << " " << endl;
return 0;
}//end main..........
Your for loop looks a bit suspect. The first expression is supposed to be an initialization, but you have an conditional statement there. So it accomplishes nothing. I imagine you meant to use a single =, instead of ==?
Consider when low is 10, and high is 2, for example.
The first line sets low to be equal to high, which is 2.
Then the second line sets high to be equal to low, which is 2.
So the values aren't swapped.
thats all it was? I moved that............I think I had that like 2 hours ago and I thought that threw me an error, sorry for bugging out, I just swear it through me an error so I wasn't going to do it again..........