- ..clause 1..: Basic knowledge
- ..clause 2..: Program readout
- Memo
- ..clause 4..: Description type
- ..clause 5..: Basic knowledge(example solution)
- ..clause 6..: Program readout(example solution)
- Memo(example solution)
- ..clause 8..: Description type(example solution)
[ 1-1 ]
What is called the file in which only textual information is written?
Example solution
[ 1-2 ]
The file in which only the numerical value is written
Especially what do call in distinction from the above-mentioned file?
Example solution
[ 2-1 ]
When you execute the following program
What value in what form is written in the file of what name?
#include <stdio.h> int main(void) { FILE *fp; int dat[3] = { 10 , 20 , 30 }; fp = fopen("file.dat","wb"); fwrite(&dat,sizeof(dat),1,fp); fclose(fp); return 0; }
Example solution
[ 3-1 ]
Make this table and make even Excel the program made by the opened form.
Number Name Average score of test 1 Nobi postponing Futoshi 0 2 [Minamotoshizuka] 90 3 Great physical strength [dentakeshi] 40 4 Bone river [sune] husband 70
The hint: Comma Separated Value opens any spreadsheet.
Example solution
[ 4-1 ]
Information that is sure to only have to be displayed on the display
Describe the file purposely concisely why.
[ 1-1 ]
Text file
Problem
[ 1-2 ]
Binary file
Problem
[ 2-1 ]
The value such as 10, 20, and 30 is written in the file.dat file in the binary form.
Problem
[ 3-1 ]
- Though it specifies by the string literal here#include <stdio.h> int main(void) { FILE *fp; fp = fopen("test.csv","w"); Number..name..test..average score. ); Nobi..postpone. ); Great physical strength. ); Bone..river..husband. fclose(fp); return 0; }
Of course, you may use the array etc.
- When the fclose function has been forgotten, it is assumed that it gives a demerit mark.
Problem
[ 4-1 ]
Because it is possible to preserve when almost permanent, and it becomes easy to edit and to hand if it makes it to the file.