From guna@andrew.cmu.edu Thu Nov 15 19:30:50 2001 Date: Mon, 12 Nov 2001 21:13:38 -0500 (EST) From: Ananda D Gunawardena To: 15-111 Section G <+dist+~guna/public/15111G.dl@andrew.cmu.edu>, 15-111 section H <+dist+~guna/public/15111H.dl@andrew.cmu.edu> Cc: Ananda D Gunawardena Subject: Test 3 1. How to read the updates files. FileInput updates = new FileInput("updates.txt"); String S; while (!updates.eof()){ S = updates.getStringNoWhiteSpace(); int origin = updates.getInt(); int destination = updates.getInt(); int cost = updates.getInt(); System.out.println(S+" "+origin + " "+destination+" "+cost); } 2. Use a *vector* of Edges(nodes) for your data structure. If you cannot figure out how to do this, we will allow you to use an *array* of edges. However there will be a 5 point deduction for this. 3. The test will be given during class period Monday and also Monday at 4:30 PM. Due to space limitations, I encourage you to take the test during class period. Let me know if you ahve any questions ananda