看板 NTUBSE-B-96 關於我們 聯絡資訊
Write statements that accomplish each of the following. Assume that the structure struct person { char lastName[15]; char firstName[15]; char age[4]; }; has been defined and that the file is already open for writing. a) Initialize the file "nameage.dat" so that there are 100 records with lastName="unassigned",firstname=""and age="0". b) Input 10 last names, first names and ages,and write them to the file. c) Update a record; if there is no information in the record,tell the user"No info". d) Delete a record that has information by reinitializing that particular record. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.235
su3g45j:= =" 05/21 12:39
cocoyan:樓上欠我錢還噓我!這個世界沒有天理了嗎?╰(‵皿′*)╯ 05/21 12:53
su3g45j:....對不起 05/22 09:16
v900149:11.11 05/23 19:16