- 실행기
-
학습
Python 배우기 실행 가능한 예제, NumPy, pandas 등 AI 배우기신경망, 머신러닝, LLM을 처음부터 C/C++ 배우기 포인터, 메모리, STL, 모던 C++ C# 배우기C# 기초, OOP, LINQ, async 및 .NET 연습 Matplotlib 배우기선, 막대, 산점도, 원 그래프를 시각화 도구와 함께 Rust 배우기소유권, 트레이트, 오류 처리, 스레드 Go 배우기슬라이스, 인터페이스, 고루틴, 채널 Python 알고리즘 검색, 정렬, 재귀와 시각화 도구 O(n) C/C++ 알고리즘 C와 C++ 구현 비교 어린이 코딩 놀면서 코딩을 배워요!
- 문제NEW
- 교사용NEW
- 업데이트
- 커피 한 잔 사 주기
구조체, 열거형, 트레이트
구조체와 열거형으로 데이터를 모델링하고, 패턴 매칭을 쓰고, Option과 Result를 다루고, 트레이트와 제네릭으로 동작을 공유합니다.
- 레슨 챌린지 1개 Structs Group related values into your own type with named fields.
- 레슨 챌린지 2개 Methods and impl Blocks Attach functions to a struct with impl, including constructors.
- 레슨 챌린지 1개 Enums Define a type that is one of several variants, each with its own data.
- 레슨 챌린지 2개 Pattern Matching with match Compare a value against patterns with match, guards and if let.
- 레슨 챌린지 1개 Temperature Converter Convert between Celsius and Fahrenheit with an enum.
- 레슨 챌린지 2개 Option: Values That May Be Missing Represent a missing value with Option instead of null.
- 레슨 챌린지 2개 Error Handling with Result Return errors as values with Result and pass them on with the ? operator.
- 레슨 챌린지 1개 Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
- 레슨 챌린지 1개 Traits Describe shared behavior with a trait and implement it for different types.
- 레슨 챌린지 1개 Generics Write one function or struct that works with many types.