Store and print row total length

AfoHT
Jan 21, 2024, 5:26 PM
4IFBDTVW4TWEG6TQFPI3KHDQW4L23HKL54F63GGYESSUZEFZHKFQC

Dependencies

  • [2] OK5CKW6E Rework everything, use references
  • [3] ZP2CTPQI Delete debug printout
  • [4] USO5PZWO Start with the print function, separate mutable and immutable functions
  • [*] 5TH3AA46 10 mm extra space

Change contents

  • edit in src/bin/main.rs at line 41
    [2.855]
    [4.720]
    let mut length_sum = 0;
  • edit in src/bin/main.rs at line 43
    [4.763]
    [3.0]
    length_sum += plank.length;
  • replacement in src/bin/main.rs at line 61
    [2.1112][2.1112:1157]()
    println!("\t\trow: {:#?}", num + 1);
    [2.1112]
    [4.1425]
    println!("\t Row length: {length_sum}\trow: {:#?}", num + 1);