Update a record that already contains information. If the record does not contain information, inform the user "No info".
What will be an ideal response?
```
cin >> setw(10) >> first;
cin >> age;
person.setLastName(last);
person.setFirstName(first);
person.setAge(age);
person.setId(id);
// move file-position pointer to correct record in file
fileObject.seekp((id - 1) * sizeof(Person));
// insert new record
fileObject.write(reinterpret_cast
sizeof(Person));
}
else { // display error if record did not previously exists
cerr << "No info." << endl;
}
```
You might also like to view...
What subcategories would you NOT find in the Computer topic on the How Stuff Works website?
A) Hardware B) Peripherals C) Security D) Digital photography
To select multiple images at the same time, press ________
A) Insert B) Shift C) Tab D) Enter
The ____ of a heap is guaranteed to hold the largest node in the tree.
A. head B. root C. right-most leaf D. left-most leaf
The _____ function is useful when you want to assign a value to a cell based on a logical test.
A. IF B. NOW C. AND D. OR