Name: Anonymous 2010-11-06 18:51
I need help
#include <stdio.h>
struct GoesTo
{
int value;
GoesTo& operator--(int){return *this;}
bool operator>(int other){
if(value == other) return false;
value += (value < other) * 2 - 1;
return true;
}
};
int main()
{
GoesTo i;
i.value = 0;
while(i --> 10){ printf("%d ", i.value); }
while(i --> 0){ printf("%d ", i.value); }
puts("");
return 0;
}