-- HW 4 simulator question
Ania suggested I post an example input file and some test networks. The following is based on the books example.
Input file:
128.96.34.0 , 255.255.255.128 ,0
128.96.34.128, 255.255.255.128, 1
128.96.33.0 , 255.255.255.0 , 2
Spacing is intentional in the input above. An example input might be:
Please enter an IP address to forward:
128.96.34.139
For which the program outputs:
1
On the input:
130.1.1.1
The program outputs:
default
On the input:
128.96.34.1
The program outputs
0
On the input
128.96.33.129
The program outputs
2
Your source code will be looked at by the grader. The above are just
examples, you can assume other tests will be made, but hopefully
the above helps your testing.
Ania suggested I post an example input file and some test networks. The following is based on the books example.<br><br>Input file:<br>128.96.34.0 , 255.255.255.128 ,0<br>128.96.34.128, 255.255.255.128, 1<br>128.96.33.0 , 255.255.255.0 , 2<br><br>Spacing is intentional in the input above. An example input might be:<br>Please enter an IP address to forward:<br>128.96.34.139<br>For which the program outputs:<br>1<br>On the input:<br>130.1.1.1<br>The program outputs:<br>default<br>On the input:<br>128.96.34.1<br>The program outputs<br>0<br>On the input<br>128.96.33.129<br>The program outputs<br>2<br>Your source code will be looked at by the grader. The above are just<br>examples, you can assume other tests will be made, but hopefully<br>the above helps your testing.