일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- html entities
- useState #Hooks
- React-Query
- 이친수
- JWT #토큰 #refreshToken #accessToken #Token #token #localStorage #sessionStorage
- RateLimit
- 백준 #직각삼각형
- 다익스트라 #파티 #백준
- 빡킹독
- raect typescript #react #typescript #styled-component
- 백준 #적록색약
- interceptors
- donwstream #upstream #origin
- npm #not being able to find a file #npm install Error
- react fragment
- react
- 플로이드 #c++
- rate limit
- axios
- React #Hook rules #Hook 규칙
- DP #c++
- 노마드 코더 #타입스크립트 #typescript #class
- React #effect hook #useEffect
- React #리액트 이벤트 주기 #리액트 이벤트
- 버블링 #갭쳐링 #이벤트 #JS
- react #useCallback #react Hook
- React #controlled component #비제어 컴포넌트 #제어 컴포넌트
- #useRef #언제 쓰는데?
- 코드스테이츠 #알고리즘 #그리디
- 얕은 복사 #깊은 복사 #shallow copy #deep copy
- Today
- Total
목록프로그래밍언어 (11)
꿈꾸는 개발자
추가로 학습해야 할 내용들: anonnymous 함수에 대한 내용! call/bind/apply()에 따른 this의 변환을 조사해라! promise의 정적 메소드들 추가 분석하기 (ex Promise.allSettled()); this에 관한 내용! (화살표 함수의 this는 무조건 부모 값을 받아오는 것이다!) const obj = { name: "hoin", sayName() { console.log(this.name); const inner = () => { console.log(this.name); }; inner(); }, }; 위와 같은 경우에는 inner함수 즉 화살표 함수의 경우 내부 this 부모에 binding되어 sayName()과 마찬가지로 부모의 this를 지칭하게 된다! 하지만..
이중포인터 매개변수 사용하기! #include #include // malloc, free 함수가 선언된 헤더 파일 void allocMemory(void *ptr, int size) // 반환값 없음, void 포인터 매개변수 지정 { ptr = malloc(size); // ptr은 allocMemory를 벗어나면 사용할 수 없음 } int main() { long long *numPtr = NULL; // numPtr과 할당할 크기를 넣어줌 allocMemory(numPtr, sizeof(long long)); *numPtr = 10; // 메모리가 할당되지 않았으므로 실행 에러 printf("%lld\n", *numPtr); free(numPtr); return 0; } 해당 코드를 실행하보면 실..
동적할당: 동적인 메모리 할당으로 stack이 아닌, heap영역에 할당되는 형태를 말한다 visual studio에서 작성할 경우, 파일 확장자가 '.c'여야 한다. 'cpp'의 경우 에러가 발생할 수 있음! #include #include // malloc, free 함수가 선언된 헤더 파일 int main() { int num1 = 20; // int형 변수 선언 int *numPtr1; // int형 포인터 선언 numPtr1 = &num1; // num1의 메모리 주소를 구하여 numPtr에 할당 int *numPtr2; // int형 포인터 선언 numPtr2 = (int*)malloc(sizeof(int)); // int의 크기 4바이트만큼 동적 메모리 할당 printf("%p\n", num..