Á¤¼ºÈÆ
    Mini Project (µµ¼­°ü °ü¸® ÇÁ·Î±×·¥) (¸ð¹ü ´ä¾È)



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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// ÀϺΠ±â´É¸¸ ±¸ÇöµÇ¾î ÀÖ½À´Ï´Ù.
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
 
struct book
{
        int id;
        char name[30];
        char author[30];
};
struct book library[1000];
 
int main()
{
        char name[30], author[30];
        int select = 0;
        int nbooks = 0;
 
        while (select != 6)
        {
                int select;
 
                printf("===========================================\n");
                printf("1. µµ¼­ ¹øÈ£·Î Ã¥ Ã£±â\n");
                printf("2. ÀúÀÚ À̸§À¸·Î Ã¥ Ã£±â\n");
                printf("3. Á¦¸ñÀ¸·Î Ã¥ Ã£±â\n");
                printf("4. »õ·Î¿î Ã¥ Ãß°¡\n");
                printf("5. µµ¼­°üÀÌ ¼ÒÀåÇÑ µµ¼­ÀÇ ¼ö Ç¥½Ã\n");
                printf("6. Á¾·á\n");
                printf("===========================================\n");
                printf("¸Þ´º Áß¿¡¼­ Çϳª¸¦ ¼±ÅÃÇϼ¼¿ä: \n");
                scanf("%d"&select);
                getchar();
 
                switch (select)
                {
                case 4:
                        printf("Ã¥ À̸§ = ");
                        gets_s(library[nbooks].name, 30);
                        printf("ÀúÀÚ À̸§ = ");
                        gets_s(library[nbooks].author, 30);
                        library[nbooks].id = nbooks;
                        nbooks++;
 
                        break;
                case 5:
                        for (int i = 0; i < nbooks; i++)
                        {
                                printf("Ã¥À̸§ = %s", library[i].name);
                                printf("ÀúÀÚ = %s", library[i].author);
                        }
                        printf("\n");
                        break;
 
                case 2:
                        printf("ÀúÀÚ À̸§À» ÀÔ·ÂÇϽÿÀ : ");
                        scanf("%s", author);
                        for (int i = 0; i < nbooks; i++)
                        {
                                if (strcmp(author, library[i].author) == 0)
                                        printf("%s %s \n", library[i].name, library[i].author);
                        }
                        break;
                case 6:
                        exit(0);
 
                }
        }
        return 0;
}
cs

  µî·ÏÀÏ : 2022-05-02 [02:55] Á¶È¸ : 129 ´Ù¿î : 0   
 
¡â ÀÌÀü±ÛMini Project (µµ¼­°ü °ü¸® ÇÁ·Î±×·¥)
¡ä ´ÙÀ½±ÛÃß°¡ µµÀü ¹®Á¦ 1
ÇÁ·Î±×·¡¹Ö¾ð¾î ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
Mini Project (¾îµåº¥Ã³ °ÔÀÓ ¸¸µé±â) Ãß°¡ ±¸Çö // ¡Ú¡Ú¡Ú ±â¸»°úÁ¦ °ÔÀÓ±¸Çö ½Ã Âü°í
½Ç½À ¸ñÂ÷
261 ¦¦❶ lfseek1.c (±³Àç) 352 02-23
260 ¦¦❶ limagedisp.c (±³Àç) 362 02-23
259 ¦¦❶ lbinary2.c (±³Àç) 387 02-23
258 ¦¦❶ lbinary1.c (±³Àç) 305 02-23
257 ¦¦❶ lscore3.c (±³Àç) 385 02-23
256 ¦¦❶ lfprintf.c (±³Àç) 350 02-23
255 ¦¦❶ lfcopy1.c (±³Àç) 270 02-23
254 ¦¦❶ lfgets.c (±³Àç) 305 02-23
253 ¦¦❶ lfgetc.c (±³Àç) 270 02-23
252 ¦¦❶ lfputs.c (±³Àç) 259 02-23
251 ¦¦❶ lfile_open.c (±³Àç) 332 02-23
250 (11Àå) ±¸Á¶Ã¼ 378 02-23
249 ¦¦❶ Mini Project (µµ¼­°ü °ü¸® ÇÁ·Î±×·¥) 274 05-02
248    ¦¦❷ Mini Project (µµ¼­°ü °ü¸® ÇÁ·Î±×·¥) (¸ð¹ü ´ä¾È) 129 05-02
247 ¦¦❶ ¨ÕÃß°¡ µµÀü ¹®Á¦ 1 145 05-30
246    ¦¦❷ Ãß°¡ µµÀü ¹®Á¦ 1 (±¸Çö Áß ÀÔ·ÂÀÌ ³Ñ¾î°¥ ¶§ ÇØ°á ¹æ¹ý) 68 05-31
245    ¦¦❷ Ãß°¡ µµÀü ¹®Á¦ 1 (¸ð¹ü ´ä¾È) 102 05-30
244 ¦¦❶ ltypedef.c (±³Àç) 454 02-23
243 ¦¦❶ lenum1.c (±³Àç) 474 02-23
242 ¦¦❶ lunion.c (±³Àç) 515 02-23

[1][2][3][4][5][6][7][8][9][10]-[Next][15]