diff options
| author | JacobAKnox <[email protected]> | 2021-11-13 09:49:09 -0800 |
|---|---|---|
| committer | JacobAKnox <[email protected]> | 2021-11-13 09:49:09 -0800 |
| commit | fcecfe178999fcf25cc7ad088913626f7f18f1fa (patch) | |
| tree | f0a41368e63f3c0d808ee960a2daa5c71a044f31 /13a.txt | |
| parent | Add online IDE url (diff) | |
| download | cst115-lab8-jacobaknox-master.tar.xz cst115-lab8-jacobaknox-master.zip | |
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 |