|
Here's my solution for Problem #5. I am happy with lots of variations in the style. The crucial thing is to mention precisely the right l-values and r-values in the right order.
*C[i] = (*B[j]).first
- dereference l(
j) to r(j)
- calculate l(
B[j]) from l(B) and r(j)
- dereference l(
B[j]) to r(B[j])
- l(
*B[j]) = r(B[j])
- calculate l(
(*B[j]).first) from l(*B[j])
- dereference l(
(*B[j]).first) to r((*B[j]).first)
- dereference l(
i) to r(i)
- calculate l(
C[i]) from l(C) and r(i)
- dereference l(
C[i]) to r(C[i])
- l(
*C[i]) = r(C[i])
- store r(
(*B[j]).first) at the address l(*C[i])
Mike O'D.
|