일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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()함수
- ASCII CODE TABLE
- GetAxis()메서드
- 유니티허브
- time.h
- 프로젝트 목록 제거
- 개인 정리
- Unity
- 유니티
- C 언어
- scanf 오류
- Axes
- 배열 사용X
- 두 값 교체하기
- Logic Gates
- 전처리기 정의
- 논리 게이트
- AWS Discovery Book
- 소스코드 하이라이팅
- 두 수 크기 비교 함수
- UnityHub
- 문자 분류
- C언어
- 반사 벡터
- 미리 컴파일된 헤더 사용안함
- 난수 값 맞추기 게임
- 기호 상수
- 2차원 배열
- 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 35 36 37 #include #include int main(void) { //short 형 short s_money = SHRT_MAX; unsigned short u_money = USHRT_MAX; s_money = s_money + 1; printf("s_money = %d\n", s_money); u_money = u_money + 1; printf("u_money = %d\n", u_money); //int 형 int i_money = INT_MAX; unsigned int u_i_money = UINT_MAX; i_money..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include #include int main() { float month = 0.0; int result = 0; printf("월급을 입력하시오 : "); scanf("%f", &month); result = round(month * 120); printf("당신의 연봉은 : %d 입니다.", result); return 0; } round() 함수 : 반올림을 해준다. round() 함수를 사용하기 위해 #include 를 사용한다. Ceil() 올림 floor() 버림
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include int main() { int a = 0; int b = 0; int temp = 0; printf("a값을 입력하시오 : \n"); scanf("%d", &a); printf("b값을 입력하시오 : \n"); scanf("%d", &b); printf("교체 전 a값 : %d, b값 : %d\n", a, b); temp = a; a = b; b = temp; printf("교체 후 a값 : %d, b값 : %d\n", a, b); return 0; }

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #include int main() { int sum = 0; int x = 0; int y = 0; printf("첫번째 수를 입력하시오 : \n"); scanf("%d", &x); printf("두번째 수를 입력하시오 : \n"); scanf("%d", &y); sum = x + y; printf("두 수의 합은 : %d", sum); return 0; } 다음과 같은 예제에서 scanf를 사용하여 수를 입력받고 그 결과를 출력하는 소스에서 컴파일이 안되는 오류가 발생 한다. 밑에 오류 이유를 보면 This function or variable may be unsafe. Consider using scan..
기능 단축키 중단점(BreakPoint) 지정 F9 디버깅 시작/종료 F5 해당줄이 함수같이 다른 곳을 가는 프로그래밍경우 그 안으로 이동해 실행한다. F11 해당 줄의 다음 줄을 실행해 준다. F10 현재 과정 벗어나기 SHIFT + F11 변수 확인 창이 안 보일 때 Debug → Windows 메뉴에서 불러온다. 자동 들여쓰기 Ctrl + K + F Alt + F8

프로젝트(우클릭) → 속성 → C/C++ → 미리 컴파일된 헤더 → 미리 컴파일된 헤더 사용 안함
https://www.spriters-resource.com The Spriters Resource Okay, I can explain the title. But first, I'm here to bring you the last update of May at the crack of dawn! Let's jump in here and see what we got (before I jump in bed)... Mortal Kombat: Tournament Edition, check... Final Sky, check... Fire Emblem Heroes www.spriters-resource.com