본문 바로가기

11. DBMS & PL/SQL
10. R 프로그래밍
11. Role Play 2 [Role play] Movie I was supposed to + V ~하기로 되어있다. get two tickets 티켓을 2장 구매하다 got the wrong tickets 티켓을 잘못 구매했다. 11. 영화관에 친구와 함께 볼 영화표 구매 전화 문의 Hi there. I'm calling to ask about tonight's movie. I would like to get two tickets. What kinds of tickets are available? Can you tell me how much they are? Do you have any recommendations? Is there a website I can see by any chance? I wonder if there a..
10. Role Play 11, 12, 13번 문제에서 3문제(1세트) 출제. [Role-Play 콤보 문제 유형] 1)11번 : 주어진 상황에서 직접 / 전화로 단순 정보 질문(친구 or 업체/영업장) 2)12번 : 문제점 설명 -> 2 - 3가지 대안 제시(약속 취소/변경, 돌발 상황, 상품/서비스 불만, 교환/환불 요청, 물건 분실) 3)13번 : 주제 관련 본인 경험 11번 영업점 메시지 시작(전화) Hi there.I'm calling to ask about package trips. I would like to go on a vacation with my friend. 11번 영업점 메시지 시작(현장) Hi there. I would like to get some new furniture. Hi there. I wou..
9. IH/AL Tip 01. 현재 시제(IM), 과거 시제(IH) 사용 (현재) I live in a three-bedroom apartment. (과거) I lived in a house with a garden when i was a kid. (과거) I got drunk that day because I drank too much. (조동사 과거) I used to play there with my friends. (조동사 과거) I had to get a lot of rest. (회상) I remember going to a concert with my friends last year. (회상) I remember eating something that went bad. (회상) I remember when water..
9. 포인터 [Pointer] 포인터는 프로그래밍 언어에서 다른 변수, 혹은 그 변수의 메모리 공간주소를 가리키는 변수를 말한다. 출처 : 위키피디아 포인터를 사용하는 이유 : call by reference 와 call by address 로 접근하기 위해 1. call by reference : 참조자 &를 붙여줌 (참조자 : 변수의 별칭을 하나 붙여주는 것) #include using namespace std; int main(){ int a = 5; int &b = a; printf("a = %d, b = %d\n", a,b); // a = 5, b = 5 b = b + 1; printf("a = %d, b = %d\n", a,b); // a = 6, b = 6 return 0; } 2. call by address : *를 ..
8. 정렬 1. 버블 정렬 : 정렬 성능은 안좋지만 O(n^2) 빠르고 쉽게 구현 가능. 정렬이 중요한 문제가 아니라면 버블 정렬도 나쁘지 않음. #define SWAP(a,b) {int t; t= b; b=a; a=t;} int arr[5] = { 1,5,3,2,4 }; void bubble_sort(int arr_size) { for (int fixed_p = arr_size -1; fixed_p > 0; fixed_p--) { for (int bubble_p = 0; bubble_p arr[bubble_p+1]) {//5,3 일때 3,5로 바꿔줘야함 SWAP(arr[bubble_p], arr[bubble_p+1]); } } } }..
7. 이진 탐색 [Binary Search] 이진 탐색 형태 : #include #include // 여기서부터 작성 int N, T; int arr[50001]; //50,000개의 데이터 int bsearch(int s, int e, int d) { int m; while (s d) { e = m - 1; } } //못 찾은 경우 리턴 0 return 0; } int main(void) { // freopen("input.txt", "r", stdin); int i, data; scanf("%d", &N); for (i = 0; i < N; i++) { scanf("%d", &arr[i]); } scanf("%d", &T); for (i = 0; i < T; i++) { scanf("%d", &data); //찾을 데이터 printf("%d\n..