Yes I was missing an a NUll at the end of a.
Now I think I came up with a working solution. Since I'm doing this using linked lists I change the conditions to:
while(hp_p != hp_q)
{
...
Type: Posts; User: cubanoemg
Yes I was missing an a NUll at the end of a.
Now I think I came up with a working solution. Since I'm doing this using linked lists I change the conditions to:
while(hp_p != hp_q)
{
...
How can I make the function continue only if the two conditions are not met and the order could be different. Ex: a could be null first or b could be null first, but only when a and b are null at...
Ok lets pretend I do a (do while).
For something like this will work:
Just pretend a and b are linked list or arrays.
a = 1, 2, 3
b = 1, 2, null
If I take the not from the conditions, it will never step into the while because at the beginning there not null.
What I want is even though the first condition or the second condition is met,...
I have a while statement that is breaking when only one of the two conditions is true.
The while loop suppose to be breaking when the two conditions are met and not only one.
suppose hp_p= 1 ,2...