| 548 | |
| 549 | |
| 550 | bool get_any_line( |
| 551 | ifstream& fin, |
| 552 | vector<string>& list, |
| 553 | const string& tag, |
| 554 | const int n) |
| 555 | { |
| 556 | string line; |
| 557 | if (! getline(fin, line)) |
| 558 | { |
| 559 | cout << "Expected txt " << tag << " line " << n << endl; |
| 560 | return false; |
| 561 | } |
| 562 | |
| 563 | list.clear(); |
| 564 | splitIntoWords(line, list); |
| 565 | return true; |
| 566 | } |
| 567 | |
| 568 | |
| 569 | bool get_head_element( |
no test coverage detected