Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- SNS
- 개인프로젝트
- C++
- 개발
- 개발자
- 주가예측
- backend
- 사물인터넷
- frontend
- 코딩독학
- java정리
- 풀스택프레임워크
- 빅데이터
- 프로그래밍
- Reflex
- 이웃한 칸
- Python
- 프로그래머스
- 자바독학
- 모의 주식
- 코스닥
- 코딩
- 프로그램
- 자바정리
- Project
- 코딩테스트
- 코테
- java
- 백준
- 자바
Archives
- Today
- Total
목록C Programming (104)
Creative Code
dice.c(주사위 값 srand함수)
#include #include #include int main(void) { srand(time(NULL)); // seed, 1970년 1월1일부터 몇 초가 지나는지 파악(즉 1초이내에 파일을 두 번이상 사용하면 소용 x) for (int i = 1; i
C Programming
2023. 8. 2. 10:44
dice.c (주사위 값 rand함수)
#include #include int main(void) { for (int i = 1; i
C Programming
2023. 8. 2. 10:40
bubbleSorting.c ( 배열 버블정렬)
#include int main(void) { int nums[10] = {50, 90, 30, 100, 80, 10, 20, 40, 70,60} ; //bubble sorting for (int i = 9; i>=1; i--){ for (int j = 0; j nums[j+1]){ int tmp = nums[j]; nums[j] = nums[j+1]; nums[j+1] = tmp; } } } for (int i = 0; i
C Programming
2023. 8. 2. 10:13
selectionSorting.c (배열 값 정렬)
#include int main(void) { int nums[10] = {50, 90, 30, 100, 80, 10, 20, 40, 70,60} ;//initialized list(초기화 리스트) //sorting for (int i = 0; i
C Programming
2023. 8. 2. 09:52
swap.c(두 수 바꾸기)
#include int main(void) { int a,b; a = 100; b = 200; printf("a : %d\tb:%d\n",a,b); //swap int tmp = a; a = b; b = tmp; printf("a :%d\tb :%d\n",a,b); return 0; }
C Programming
2023. 8. 2. 09:48