블로그
-
N번째 큰 수 (백준 P2075)
return; int half = (end - start) / 2; mergeSort(arr, start, start + half); mergeSort(arr, start + half , end); int[] temp = new int[end - start]; int idx1 = 0, idx.......
blog.naver.com · 2016.02.16
-
[영진전문대 컴퓨터정보계열] 자료구조
q->front == q->rear; } int is_full(AQ *q){ return (q->rear+1)%MAX_SIZE == q->front; } void ~\n"); }else{ item = q->queue[(q->front+1).......
blog.naver.com · 2015.11.24
-
[C#] FTP를 통한 특정 파일의 마지막 수정일자 알아오기
= Uri.UriSchemeFtp) { return false; } // Get the object used to communicate with the server. {1}",serverUri,response.LastModified); // The output from this method will vary depending on the //
blog.naver.com · 2015.12.01
-
[쉽게 풀어쓴 C언어 Express] 제2장 - 프로그래밍 작성 과정(연습문제)
교재의 76p Excercise 입니다. 1. 다음과 같은 실행결과가 나오도록 빈칸을 채워라. 실행결과 : Visual C++로 C언어를 시작합니다. 0; } #include int main() { printf("Visual C++로"); printf("C언어를 시작합니다."); return 0; } 2.
blog.naver.com · 2015.09.23
-
abex's crackme 2 클리어 및 키젠 구현
n", nums[0], nums[1], nums[2], nums[3]); printf("Press any key to close. \n"); _getch(); return; } 코드를 간.......
blog.naver.com · 2015.09.29
-
C언어 함수포인터 - 함수포인터를 반환하는 함수 - function pointer
: return vfun1; case 2 : return vfun2; } return NULL; } int main(int argc, char**argv) { void (*fun)( ); if (fun = RetFunc(1)) fun(); return 0; } 좀 더 복잡한 함수 포인터 예 : enum { FMATH_NULL = 0, FMATH_ADD = 1,
blog.naver.com · 2015.05.31
-
c 언어 프로그래밍 피보나치수
소스코드 #include #include int main(void) { int a = 0, b = 1 , sum = 0; int i,num; printf("개수 : "); scanf (); return 0; }
blog.naver.com · 2015.05.21
-
숫자로 입력했을때 yyyy-mm-dd 형식으로 자동변환
)+"-0"+inputday.substr(6,1); } if(! 4,2)+"-" +inputday.substr(6,2); } //2000-1-1 입력을 처리하기위한 루틴 var dateFormat=/^[0-9]{4}-[0-9]{1,2}-[0-9]
blog.naver.com · 2015.05.12
-
for 문의 중첩
//************************** 9 - 1**********************************/ //9 - 1 (1) //#include //#include 0; //} //9 - 1 (2) //#include //#include //int main(void) //{ // int i, j; // int num; // printf("몇
blog.naver.com · 2015.05.23
-
isspace를 이용한 문자열 공백제거
#include char *ltrim(char *s) { while(isspace(*s)) s++; return s; } char *rtrim(char *s) { char* back = s + strlen(s); while(isspace(*--back)); *(back+1) = '\0'; return s; } char *trim(char *s) { return
blog.naver.com · 2015.03.31