Initialize nameage.dat with 100 records that store values lastName ="unassigned", firstName = "" and age = 0.

What will be an ideal response?


```
// fstream object "fileObject" corresponds to file nameage.dat
Person blankPerson;
blankPerson.setLastName("unassigned");
blankPerson.setFirstName("");
blankPerson.setAge("0");
blankPerson.id = 0;
for (size_t r{0}; r < 100; r++) {
fileObject.write(reinterpret_cast(&blankPerson),
sizeof(Person) );
}
```

Computer Science & Information Technology

You might also like to view...

A slide show can be stopped by pressing the Esc key on the keyboard

Indicate whether the statement is true or false

Computer Science & Information Technology

Outlook's Calendar can convert words such as "yesterday" and "tomorrow" into the appropriate date.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

After you connect to a network successfully, all mobile devices store that network access information automatically, creating a(n) _______________ for the network based on its SSID.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following makes this statement false?  "A web page that is published with errors will cause the viewer to immediately judge the site as ____."

A. professional B. carelessly made C. inaccurate D. unprofessional

Computer Science & Information Technology