Contents
1.1. 개 ¶
- : C 구까 ㅋㅋ
- 간 : 3~4.
- 과 : 과 까 jereneal20@. .
- 구 :
- 계 :
- 1(5/9) - 기(for)
- 2(5/16) - , + Search
- 3(5/23) - , + Search, Sort
- 4(5/30) - 구, 2 + Stack, Queue
- 5(6/6) - C++ 기, String + Linked list ( )
- 6(6/13) - 1~5 경 .
- 경 - Class, Object + Tree, Graph
- 거 .. 까 .
- .
- 거 .. 까 .
- 1(5/9) - 기(for)
- 과
1.2.2. 과 ¶
- 과 그 고( ), 간게(1~3) .^^
- 그 고, .c .
- . 꼭 기 .(견 교 )
- () 간게 ~
- () 간게 ~
- 과 걸 꼭 C ~
- 기
- (Compile), (Build), (Linking) 고 .
- , 고, 그 2개 .
- char . ASCII .
- #include, 과 고, include .
- #define 고, '간' 그 .
- ++, --, &&, ||, +,-, !=, ==, = 간간 .
- if, else, else if 그 . else else if 3 .
- switch-case 간 그 .(eg. Grade계기 A,B,C)
- 계기 경 90 A, 80 B 구. 100 10 switch .
- 계기 경 90 A, 80 B 구. 100 10 switch .
- while 그 . C간 과 .
- 그 do-while 꿔 ''그 .
- 그 for 꿔 .
- 2 for 기 .
- (Compile), (Build), (Linking) 고 .
1. ***** **** *** ** * 2. * ** *** **** *****
- , 과: 기 .
- n 기 .
- n 기 .
1. ******* ***** *** * 2. * *** ***** ******* ***** *** *
- 과 과
-
-
- , 과 for 각각 3개, 4개 .(hint 2*n-1)
-
- 과
- 고, 그 .
- return .
- 고, void return .
- .
- 고, 개 ( ) .
- 간 그 .
- 고, 그 .
- 과 과
- 그 .(eg.1~n까 , n!구기)
- 고, 그 값 그(Search) .
- 그 .(eg.1~n까 , n!구기)
1.2.3.1. ¶
- 1.?
--> 그 고 그 기계
2.#include?--> 기
3.return 0?--> 그
4. 10 곱 , 10
-->
#include <stdio.h> int main(){ int a; scanf("%d",&a); if(a>10) printf("%d",a*a); else if(a<10) printf("%d",2*a); return 0; }
#include <stdio.h> int main(void) { int i; int j; int n; int k; scanf("%d",&n); for(i=n;i>=1;i--) { for(j=1;j<n+1-i;j++) { printf(" "); } for(j=1;j<=2*i-1;j++) { printf("*"); } printf("\n"); } return 0; }
1.3.1. 과 ¶
- 까 . 금 겠 .
- 과 과 과 과 .
- 과 과 과 과 .
- 과
1.0과 1000 그 .
- /10, %10 .
3. 그 .
- 2 깨 고 .
- if(10>x) printf(" ");.
- /10, %10 .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
4. 그 .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
5. 그 그 .( 그 21 )
6. 그 그 .
7. 그 그 .
8. 그 고 60 F, 61~70 D, 71~80 C, 81~90 B, 90~ A 그 .
6. 그 그 .
7. 그 그 .
8. 그 고 60 F, 61~70 D, 71~80 C, 81~90 B, 90~ A 그 .
#include <stdio.h> int main(){ int num; printf(" : "); scanf("%d", &num); switch(num/10){ case 10 : case 9 : printf("A\n"); break; case 8 : printf("B\n"); break; default : printf("???\n"); break; } }
9.101200까 '' .(main sum=Sum(); printf("%d",sum); )
10. n! 그 .
11.n! 그 for .
12. 110까 그 .
13. {7,4,2,9,3,1,2} . 3 그 .
14. {7,4,2,9,3,1,2} . 1 그 . (, 7 )
15. {7,4,2,9,3,1,2} . 2 고, 그 .
16. {7,4,2,9,3,1,2} . ()고, 그 .
10. n! 그 .
11.n! 그 for .
12. 110까 그 .
13. {7,4,2,9,3,1,2} . 3 그 .
14. {7,4,2,9,3,1,2} . 1 그 . (, 7 )
15. {7,4,2,9,3,1,2} . 2 고, 그 .
16. {7,4,2,9,3,1,2} . ()고, 그 .
- 과
- 2 고, 게 , 간 그 .
- srand() 고, time() 그 .
- 고, .
- 과 공과 고, .
- 2 고, 게 , 간 그 .
1.4.1.1. ¶
1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16 21 22 23 24 25(rand()%1000 1 1000까 .)
11.Sort 구. 11과 , 고, .
12.간 , int* a; int b; &a,a,*a,&b,b 각각 고, 과 .( 고 .)
12.간 , int* a; int b; &a,a,*a,&b,b 각각 고, 과 .( 고 .)
1.5.1. 과 ¶
- 과 곳: 교/2012/AClass/4
- 과 까. 까 .
- 기
1.5.1.1. ¶
1~6.Koistudy.net 106~111
7.Koistudy.net 125, 152( 기 ) 3n+1
7.Koistudy.net 125, 152( 기 ) 3n+1
- accept 걸
accept 게 ^^
- 과 8 . 게
1 3 2 4 5 6 10 9 8 7 11 12 13 14 15 21 20 19 18 17 16
9.2 3x3 개 고, 그 .
11.간 , int* a; int b; int **c; &c,c,*c,&a,a 각각 고, 과 .
12. 고, 그 값 .
- hint) Dp = (int**)malloc(sizeof(int*));
11.간 , int* a; int b; int **c; &c,c,*c,&a,a 각각 고, 과 .
12. 고, 그 값 .
int* a; int b=5; int** c; c=&a; a=&b; **c=9; printf("%d %d",*c,**c);
1.5.1.2. ¶
- LinkedList node 고, 그 .
- Circular Queue .
- typedef 고, 간 .
- 구 student 구 고, student 구 0~3 AClass 고, 그 .
- 구 char 고, int .
- 과 경 게 고, 과 .
- 구 char 고, int .
1.6.1. 과 ¶
- 과 곳: 교/2012/AClass/5
- 과 까. 까 .
1.6.1.1. 과 ¶
1.KoiStudy 112~113,115~122 - 기 거 개 거 거.
2.Swap
3.3,4,6,7,9,3,2 2,3,9,7,6,4,3 그 .()
4.BinarySearch 고, 구 .(!)
2.Swap
3.3,4,6,7,9,3,2 2,3,9,7,6,4,3 그 .()
4.BinarySearch 고, 구 .(!)
- 그 게 각 . 그 고 각
1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
6.LinkedList 구 구 고, 그 구 linkedlist .
7. list 개 결 구 . list->next->next = ;
8.LinkedList 고, data 4,5,3,7,12,24,2,9 .
7. list 개 결 구 . list->next->next = ;
8.LinkedList 고, data 4,5,3,7,12,24,2,9 .
1.6.1.2. 과 ¶
1.Koistudy163
2.163 고, 그 게 근 .
3. 경 Palindrome, 경 Not Palindrome 그 .
2.163 고, 그 게 근 .
3. 경 Palindrome, 경 Not Palindrome 그 .
- level, racecar, deed palindrome, sadfds not Palindrome
1.7.2.1. ¶
#include <stdio.h> #include <stdlib.h> typedef struct node node; struct node{ int data; struct node* next; }; int main(){ int i; node* head=(node*)malloc(sizeof(node)); node* tmp = NULL; tmp=head; for(i=0 ; i<10 ; i++){ tmp->data=i+1; tmp->next = (node*)malloc(sizeof(node)); //printf("%d\n",tmp->data); tmp=tmp->next; } tmp=head; for(i=0 ; i<10; i++){ printf("%d\n",tmp->data); tmp=tmp->next; } return 0; }
기 그 겠.....
1.7.2.2. ¶
- 과 .
#include <stdio.h> struct node{ int data; struct node *next; }; int main() { struct node *head=(struct node*)malloc(sizeof(struct node)); struct node *tmp = NULL; int i; int n; tmp=head; for(i=0;i<10;i++) { tmp->next=(struct node*)malloc(sizeof(struct node)); tmp->data=i+1; tmp=tmp->next; tmp->next=NULL; } scanf("%d",&n); for(tmp=head;tmp->next!=NULL;tmp=tmp->next) { if(tmp->next->data==n) tmp->next=tmp->next->next; printf("%d ",tmp->data); } return 0; }
1.7.2.3. ¶
- ㅎㅎㅎㅎㅎㅎ
#include<stdio.h> #include<stdlib.h> typedef struct node node; struct node{ int data; struct node *next; }; int main(void){ int i; node *head = (node *)malloc(sizeof(node)); node *tmp = NULL; tmp = head; for(i=0;i<10;i++){ tmp->data = i; tmp->next = (node *)malloc(sizeof(node)); tmp = tmp->next; } tmp = head; for(i=0;i<10;i++){ printf("%d\n",tmp->data); tmp = tmp->next; } return 0; }
1.9.1. 과 ¶
- 과 곳: 교/2012/AClass/2-2
- 과 까. 까 .
1.
2.Swap 기
3.call by value, call by reference 고, 그 , 기 .
4.Linked List , 고, .
5.Struct?
6.Object Oriented Programming .
7.객 고, .
8.Class?()
9.Overloading?
10.public과 private .
11.Koistudy 126~130, 146, 148, 149
- C++ .(cin cout)
- .
- C++ .(cin cout)