diff options
Diffstat (limited to 'TextFile1.txt')
| -rw-r--r-- | TextFile1.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/TextFile1.txt b/TextFile1.txt new file mode 100644 index 0000000..d02b7c3 --- /dev/null +++ b/TextFile1.txt @@ -0,0 +1,19 @@ +p.317 #5 +a. if(input_file.is_open()) +{ + ... +} +b. input_file >> lname[num_records] >> id[num_records] >> age; + while(!input_file.eof()) + { + num_records++; + input_file >> lname[num_records] >> id[num_records] >> age; + } +c. input_file.close(); + +#6 +a. False +b. True +c. True +d. True +e. True
\ No newline at end of file |