일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 키입력값 받기
- round()함수
- 유니티
- 반사 벡터
- time.h
- 두 값 교체하기
- 프로젝트 목록 제거
- C언어
- 논리 게이트
- 2차원 배열
- 유니티허브
- AWS Discovery Book
- 두 수 크기 비교 함수
- 미리 컴파일된 헤더 사용안함
- 개인 정리
- Unity
- 극장 예약 프로그램
- 전처리기 정의
- GetAxis()메서드
- Axes
- 기호 상수
- Logic Gates
- 문자 분류
- 배열 사용X
- 소스코드 하이라이팅
- C 언어
- 난수 값 맞추기 게임
- UnityHub
- ASCII CODE TABLE
- scanf 오류
- Today
- Total
목록분류 전체보기 (47)
flrto
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 32 33 34 #include #include #include int main(void) { srand(time(NULL)); int rand_num = 0; int input_num = 0; int count = 1; rand_num = rand();//32000 while (1) { scanf("%d", &input_num); if (rand_num > input_num) { printf("제시한 정수가 낮습니다.\n", rand_num); } else if (rand_num
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 #include #include #include int main(void) { char ch; while (1) { ch = _getch(); switch (ch) { case 'w'/*119*/: printf("앞으로\n"); break; case 'a'/*97*/: printf("왼쪽으로\n"); break; case 'd'/*100*/: printf("오른쪽으로\n"); break; case 's'/*115*/: printf("뒤로\n"); break; } } return 0; }
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 #include int main(void) { char ch; printf("문자를 입력하시오: "); scanf("%c", &ch); if (ch >= 'A' && ch = 'a' && ch = '0', ch
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 #include #include #include int main() { int x = 0; int com = 0; srand(time(NULL)); printf("1 가위 2 바위 3 보\n\n"); scanf("%d", &x); com = (rand() % 3) + 1; if (x == 1) { printf("나 가위 "); } else if (x == 2) { printf("나 바위 "); } else i..
#define my_num = 1; const int my_num = 1; 왠만하면 const를 이용한 기호 상수를 이용하는 것이 좋다.