diff options
Diffstat (limited to '13a.txt')
| -rw-r--r-- | 13a.txt | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +13a + +5. + int records = 0; + ifstream file = ("file.txt"); + + string lname[], id[], age[]; + + if (file.is_open()) + { + file >> lname[records] >> id[records] >> age[records]; + while (!file.eof()) + { + records++; + file >> lname[records] >> id[records] >> age[records]; + } + file.close(); + } + else + { + //error handling + } + + printData(lname, id, age, records); + +6. + a. False + b. True + c. True + d. True + e. True
\ No newline at end of file |