반응형
Notice
Recent Posts
Recent Comments
Link
- Today
- Total
04-19 06:37
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 시각화
- SWIFT
- rxswift
- cocoapods
- deeplearning
- scheduledTimer
- HTTP
- rest api
- 오블완
- struct
- sigmoid
- 티스토리챌린지
- Python
- 명령어
- ReLU
- 딥러닝
- decode
- barplot
- r
- Request
- Linux
- tapply
- substr
- MVC
- swiftUI
- 연산자
- Optional
- ios
- Observable
- SQL
Archives
목록구조체 (1)
iOS 개발 기록 블로그

Swift에서도 역시 구조체(struct)가 있고 그 사용 방법에 대해 알아보자. 개념 스위프트에서 데이터 타입은 Int, Float, String, Boolean, Array, Dictionary 등 여러 가지가 존재한다. 우리는 직접 개인화(커스터마이징)한 데이터 구조체를 만들 수 있다. 그걸 구조체, structure, struct, class(?)라고 부른다. 코드 먼저 예시 코드를 보자. // custom data type struct Town { // Properties let name = "CdeerLand" var citizens = ["Cdeer", "SunnyAn"] var resources= ["Grain": 100, "Ore": 42, "Wool": 75] // Method func..
iOS
2022. 5. 20. 09:00