일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Overloading
- stream
- wpf
- compare
- Barcode
- parameter
- Pointer
- java
- Android
- length
- atmega328
- memory
- file access
- Contour
- UNO
- preprocessing
- APP
- sensor
- SERIAL
- digitalRead
- Class
- Unity
- c++
- Read
- aduino
- Encapusulation
- inheritance
- flutter
- public
- mfc
Archives
- Today
- Total
목록switch case (1)
폴크(FOLC)

1. 조건문 # 명시한 불린 자료형 조건이 참인지 거짓인지에 따라 달라지는 계산이나 상황을 수행한다. # if, if ~ else, switch case 키워드를 사용한다. # 조건이 참인지 거짓인지를 비교할때 "==" 이렇게 사용한다. # if ~ else 문 에서는 else 구문을 빠뜨리지 않도록 한다. # switch case 문 에서는 default 구문을 빠뜨리지 않도록 한다. > if( a == 1 ) { printf(_L("a 는 1입니다."); } > if( a == 1 ) { printf(_L("a 는 1입니다."); } > else if( a == 2 ) { printf(_L("a 는 2입니다."); } > else { printf(_L("a 는 1 또는 2가 아닙니다."); } > s..
C, C++, MFC/C, C++, MFC 테크닉
2021. 6. 28. 16:03