공백없애기 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main() { //freopen("input.txt", "rt", stdin); char a[101], b[101]; int i, p=0; gets(a);// scanf로는 공백을 포함한 문자를 모두 읽을 수 없음 for(i=0; a[i]!='\0'; i++){ if(a[i]!= ' '){ if(a[i]>=65 && a[i]
나이차이 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main() { //freopen("input.txt", "rt", stdin); int n, i, a, max=-2147000000, min=2147000000; cin>>n; for(i = 1; i >a; if(a>max){ max=a; } if(a

OAuth인증을 통해 Access Token을 발급받는 과정에 대해 설명하고자 한다. Java를 사용하였으며 unirest를 통해 token을 요청하였다. 네이버 D2블로그에서 OAuth과정에 대해 이해하기 쉽게 설명한 글이 있어 해당 글의 비유를 참고하였으며 과정과 코드를 비교해가며 설명하겠다. Request Token요청과 발급 test.jsp에 버튼을 생성이 되어 있으며 버튼클릭시 location.href를 통해 Request Token을 요청한다. Request Token요청 ${demoDto } 요청이 완료된 다음에는 최종 Access Token을 demoDto 객체에 담아 "token" 버튼 아래 나타내 주고자 한다. 사용자 인증페이지 호출/사용자 로그인 완료 1번 과정에서 나온 url을 통해..
std::cout #include int main(){ std::cout
// async & await // promise를 사용하는데 있어 깔끔한 스타일 // 1. async /*function fetchUser() { // 백엔드에서 요청이 10초정도 걸리는 return new Promise((resolve, reject) => { resolve('ellie'); //reject(new Error()); }); }*/ async function fetchUser() { return 'ellie'; } const user = fetchUser(); user.then(console.log).catch(console.log); //user.then().catch(console.log); console.log(user); // 2. await function delay(ms) {..
'use strict'; // Promise는 비동기 실행상황을 위한 javascript Object임 // State: pending -> fulfilled or rejected // Producer vs Consumer // 1. Producer // when new Promise is created, the executor runs automatically. const promise = new Promise((resolve, reject) => { // doing some heavy work (network, read files) console.log('doing something...'); setTimeout(() => { resolve('ellie'); //reject(new Error('no ..
- Total
- Today
- Yesterday
- 입출력장치
- C
- 이진탐색
- 세마포어
- 재귀함수
- 병행프로세스
- 운영체제
- 소프트웨어
- Java
- 인접리스트
- 배열
- dfs
- 인접행렬
- Stack
- 자료구조
- 스텍
- server side rendering
- client side rendering
- C++
- 최단경로
- 클래스
- 동적프로그래밍
- javascript
- react
- 구조체
- BFS
- 교착상태
- stackframe
- 알고리즘
- 퀵정렬
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |