일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 소스코드 하이라이팅
- 전처리기 정의
- 난수 값 맞추기 게임
- GetAxis()메서드
- 유니티허브
- Logic Gates
- 논리 게이트
- 극장 예약 프로그램
- 기호 상수
- 반사 벡터
- 2차원 배열
- Axes
- ASCII CODE TABLE
- 키입력값 받기
- time.h
- 두 수 크기 비교 함수
- UnityHub
- round()함수
- 문자 분류
- Unity
- scanf 오류
- 미리 컴파일된 헤더 사용안함
- 유니티
- AWS Discovery Book
- 프로젝트 목록 제거
- C 언어
- 배열 사용X
- 두 값 교체하기
- 개인 정리
- C언어
- Today
- Total
목록C (26)
flrto
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758#include #include const int SUCCESS = 1;const int FAIL = 2;const int LIMIT = 3; const int AdminID = 8613;const int AdminPass = 3090; int LoginCount = 0;int check(int id, int password); int check(int id, int password){ LoginCount++; if (LoginCount == LIMIT) { return LIMIT; } if (AdminID == i..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816..
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 60 61 62 63 64 65 66 67 #include #include #include int compare(int _0, int _1, int _2, int _3, int _4, int _5, int myNum); int create_lotto(int _0, int _1, int _2, int _3, int _4, int _5); int main(void) { srand(time(NULL)); int l..
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 #include int get_max(int x, int y); int main(void) { int a, b; printf("두개의 정수를 입력하시오 : "); scanf("%d %d", &a, &b); printf("두 수 중에서 큰 수는 %d 입니다.\n", get_max(a, b)); return 0; } int get_max(int x, int y) { if (x > y) { return x; } else if (x
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; }