c++ - Why wont my while statement work? -


I think I'm doing everything fine ... but obviously I'm missing something, my The statement does not seem to please help please enter ....

  #include & lt; Iostream & gt; using namespace std; Zero swap (int * aPtr, int * bPtr) {int holder = 0; Holder = * aPtr; * APTR = * bPtr; * BPtr = Holder; } Zero Starter (int * DPTR, int * XPTR, int * ypt, int a) {* dptr = a; * XPtr = 1; * YPtr = 0; } Zero cruncher (int * xPtr, int * dptr, int * aPtr, int * yPtr, int * bPtr) {int x 1 = 0, x2 = 1, y1 = 1, y2 = 0, r = 0, q = 0 ; Whereas (* bPtr & gt; 0) {q = * aPtr / (* bPtr); R = * aPtr% * bPtr; * XPtr = x2- (Q * x1); * YPtr = y2- (Q * y1); * APTR = * bPtr; * BPtr = r; X2 = x 1; X1 = * xPtr; Y2 = y1; Y1 = * xPtr; The court's & lt; & Lt; X & lt; & Lt; "" & Lt; & Lt; RK & lt; & Lt; "" & Lt; & Lt; * XPtr & lt; & Lt; "" & Lt; & Lt; * YPtr & lt; & Lt; "" & Lt; & Lt; * APtr & lt; & Lt; "" & lt; & Lt; * BPtr & lt; & Lt; "" & Lt; & Lt; X1 & lt; & Lt; "" & Lt; & Lt; X2 & lt; & Lt; "" & Lt; & Lt; Y2 & lt; & Lt; "" & Lt; & Lt; Y1 & lt; & Lt; Endl; } Cout & lt; & Lt; Endl; * DPTR = * aPtr; * XPtr = x2; * YPtr = y2; } Int main () {int a = 4864, b = 3458, d, * aPtr, * bPtr, * dPtr, x, * xPtr, y, * yPtr; APtr = & amp; One; BPtr = And B; DPTR = & amp; D; XPtr = & amp; X; YPtr = & amp; Y; If (B = 0) instantator (DPTR, XPTR, YPTR, A); If (A and Lt; B) swap (APTR, BPTR); Cruncher (xPtr, DPTR, aPtr, yPtr, bPtr); The court's & lt; & Lt; D & lt; & Lt; "" & Lt; & Lt; X's & lt; & Lt; "" & Lt; & Lt; Y; Return 0; }     after 

loop > * BPTR & gt; 0 , then using b for 0 in main (using if (b = 0) for you ) and then pass an indicator as bPtr . Try deciding if statement in main and see if this behavior changes.

Comments