E
Eigenvector
Probably a dumb question, but I'm having problems with a while loop that I
would like to have execute in some code I'm writing.
Now what I'll post below is made up trivial code because what I'm ultimately
trying to do is mostly OT and far too complicated.
#define <stdio.h>
int mysterybox(int);
int main()
{
int a, b, c;
a=mysterybox(b);
while (a !=0 )
{
a=mysterybox(c);
}
}
The only problem that my code is faced with, outside of the atrocious
example is that unfortunately "a" sometimes equals 0 prior to entrance into
the while loop. Regardless of what "a" equals I need it to enter the while
loop.
Now it doesn't have to be a while loop, that's one of the reasons why I
suspect my question is trivial. It does however have to be a while
loop-like structure meaning it shouldn't terminate unless "a" does equal 0.
would like to have execute in some code I'm writing.
Now what I'll post below is made up trivial code because what I'm ultimately
trying to do is mostly OT and far too complicated.
#define <stdio.h>
int mysterybox(int);
int main()
{
int a, b, c;
a=mysterybox(b);
while (a !=0 )
{
a=mysterybox(c);
}
}
The only problem that my code is faced with, outside of the atrocious
example is that unfortunately "a" sometimes equals 0 prior to entrance into
the while loop. Regardless of what "a" equals I need it to enter the while
loop.
Now it doesn't have to be a while loop, that's one of the reasons why I
suspect my question is trivial. It does however have to be a while
loop-like structure meaning it shouldn't terminate unless "a" does equal 0.