블로그
-
the court and outward rooms of the palace. I knew and could
any man for the service of his country, creatures ran off a second time, before I could seize them; return I was told that a great court lady, who had several their true interest by placing it on the same foundation
blog.naver.com · 2016.06.16
-
How to check if date is valid in Java
public boolean isThisDateValid(String dateToValidate, String dateFromat){ if(dateToValidate == null){ return false; } return true; } } By default, SimpleDateFormat.setLenient() is set .......
blog.naver.com · 2016.03.15
-
소풍 (백준 P1242)
private static int solve(int N, int M, int K, int s) { int idx = (s-1 + M-1) % N + 1; if(idx == K) return 1; else if(idx < K) K--; N--; return 1 + solve(N, M, K, idx); } public static void main(String[]
blog.naver.com · 2016.02.16
-
functional programming
Not to forget lambda's use in functional programming, e.g. having a function return another function: by n.
blog.naver.com · 2015.10.03
-
명품 C++ programming 10장 실습문제 11번
vector vec; string writer; string year; public: static int receivingNum; string GetWriter() const { return writer; } string GetYear() const { return year; } int .......
blog.naver.com · 2015.09.11
-
[javaScript] 특정 날짜 요일 구하기
'수요일', '목요일', '금요일', '토요일'); var day = new Date('2015-09-15').getDay(); var day_week = week[day]; return day_week;} console.log(getYo());//화요일Colored by Color Scriptercs
blog.naver.com · 2015.09.15
-
문제 2 - 1, 2 - 2
cout << "change num: " << num << endl; system("pause");} int add(int &num){ return num += 1;} int change(int &num){ return -num;} Colored by Color Scriptercs 문제 2 12345678910111213141516171819202122232425262728293031
blog.naver.com · 2015.08.13
-
열혈 C++ chapter 2 - 5 malloc & free 를 대신하는 new & delete
str); system("pause");} char * MakeStrAdr(int len){ char * str = (char*)malloc(sizeof(char) * len); return str;} Colored by Color Scriptercs NewDelete.cpp 123456789101112131415161718192021#include #include using
blog.naver.com · 2015.08.13
-
열혈 C++ chapter 1 - 4 인라인(inline) 함수
endl; std::cout << SQUARE(12) << std::endl; system("pause");} inline int SQUARE(int x){ return x * x;} Colored by Color Scriptercs 알게된점 매크로 함수는 자료형에 의존하지 않아 데이터 소멸이 없지만 인라인 함수는 데이터 소멸이 있다.
blog.naver.com · 2015.08.11
-
열혈 C++ chapter 1 - 3 매개변수의 디폴트 값
DefaultValue1.cpp 1234567891011121314#include int Adder(int num1 = 1, int num2 = 2){ return num1 + num2 (5) << std::endl; std::cout << Adder(3, 5) << std::endl; system("pause");}Colored by
blog.naver.com · 2015.08.10