전체 글

싱싱한 자연어를 탐구합니다.
재귀함수 알고리즘 피보나치 수열 계산기 #include int fibo(int n) { if (n==1 | n==2) return 1; else return fibo(n-1) + fibo(n-2); } int main() { int n; scanf("%d", &n); printf("%d", fibo(n)); return 0; }
#include int main() { int i, j; int a[10+1][10+1]={}; // 10*10 크기의 미로 상자 for(i=1; i
1. basics string의 정의 string은 배열의 끝이 \0으로 끝나는 character array이다. string의 끝에는 항상 보이지 않는 \0이 숨겨져 있다는 것을 기억해야 한다. 그러므로 "hello" 5 bytes가 아니라 6 bytes를 차지하고 있다. char constant (문자 상수) char constant (문자 상수)는 compile time 동안 ascii number로 대체된다. x = 'a'; // The compiler changes above to x = 97; // 97 is the ascii number of 'a' string constant (문자열 상수) string constant (문자열 상수)는 compile time 동안 저장된 주소로 대체된다...
#include int main() { int n, i, j, x, y; int a[20][20]={}; scanf("%d", &n); for(i=1; i
#include int main() { int h, w, n, l, d, x, y, i, j; int a[100][100]={0,}; // w, h의 최대값이 100이므로 scanf("%d %d", &w, &h); scanf("%d", &n); for(i=1; i
GitHub token 오류 해결 - Personal access tokens 발급 받기 remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. https://hyeo-noo.tistory.com/184 [Mac] GitHub push token 오류 해결 Github 오류 ..
oneonlee
One Only