
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50


목차
소스코드 포함
보고서 목차
1. Program design
1) 입력 및 저장
2) ADT
3) searching 및 출력
2. 주요 코드 설명
3. 결론
보고서 목차
1. Program design
1) 입력 및 저장
2) ADT
3) searching 및 출력
2. 주요 코드 설명
3. 결론
본문내용
1) main function
int main(void){
char s[MAX_LINE][100]={NULL}; // for file strings
readFile(s);
storeSubstrings(s);
searchString(s);
return 0;
}
2) readFile function
//read strings from "input.txt" file
void readFile(char (*temp)[100]){
FILE* f; // file pointer f
f=fopen("input.txt", "r");
........
int main(void){
char s[MAX_LINE][100]={NULL}; // for file strings
readFile(s);
storeSubstrings(s);
searchString(s);
return 0;
}
2) readFile function
//read strings from "input.txt" file
void readFile(char (*temp)[100]){
FILE* f; // file pointer f
f=fopen("input.txt", "r");
........
소개글