[Swift] Control Transfer Statements (흐름 제어 구문), Labeled Statements (구문 이름표)
목차 Control Transfer Statements (흐름 제어 구문) break Statement continue Statement Labeled Statement (구문 이름표) Control Transfer Statements (흐름 제어 구문) 제어를 전달한다는 것은 현재 실행중인 scope 중에서 break, continue, Labeled 등을 통해 코드의 흐름을 제어하여 바로 다음 코드를 실행하게 하는 것이다. break Statement let num = 1 // switch문에서 break switch num { case 1...100: print("num은 \(num)이다.") // num은 1이다. if num % 2 != 0 { // num = 1이므로 break break } ..
Swift
2021. 2. 16. 23:05
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 비트연산자
- labeled
- 흐름제어구문
- Constants
- 옵셔널
- 산술연산자
- 오토레이아웃
- 세자리수마다 콤마넣기
- swift
- RawValues
- optional
- 결합성
- 객체지향 생활체조
- variables
- Functions
- 삼항연산자
- 반복문
- 전산구문 기초용어
- conditional
- 오버플로우연산자
- overflow
- iOS View Life Cycle
- playground
- scope
- continue
- enumerations
- 구문이름표
- datatypes
- 범위연산자
- 훈련법
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함