10 likes | 89 Views
http://www.cs.kent.edu/~fchen/lab.html. Note: The name of the first project should be “ lab3_1 ”, and the second should be “ lab3_2 ”. Project 1: Two nested loops (two indexes: i and j ) i : scan each row j: scan the position of every star in each row
E N D
http://www.cs.kent.edu/~fchen/lab.html Note: The name of the first project should be “lab3_1”, and the second should be “lab3_2”. Project 1: Two nested loops (two indexes: i and j ) i : scan each row j: scan the position of every star in each row row 0: * * * * row 0 : * row 0: _ _ _ * j : 0 1 2 3 j : 0 j : 0 1 2 3 row 1: * * * * row 1 : * * row 1 : _ _ * * j : 0 1 2 3 j : 0 1 j : 0 1 2 3 row 2: * * * * row 2: * * * row 2: _ * * * j : 0 1 2 3 j : 0 1 2 j : 0 1 2 3 row 3: * * * * row 3: * * * * row 3: * * * * j : 0 1 2 3 j : 0 1 2 3 j : 0 1 2 3 Index error is the most frequently happened problem during multiple nested loops. Output the indexes to check if they are right. Here _is the space.