Day 1: Morning Exercises

์ด๋ฒˆ ์—ฐ์Šต๋ฌธ์ œ๋Š” ๋Ÿฌ์ŠคํŠธ์˜ ๋‘ ๋ถ€๋ถ„์„ ์•Œ์•„๋ณผ ๊ฒƒ์ž…๋‹ˆ๋‹ค:

  • ํƒ€์ž…์˜ ์•”๋ฌต์  ๋ณ€ํ™˜
  • ๋ฐฐ์—ด๊ณผ for loops

In these exercises, we will explore two parts of Rust:

  • Implicit conversions between types.

  • Arrays and for loops.

๊ฐ•์˜ ์ฐธ์กฐ ๋…ธํŠธ

์—ฐ์Šต๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š”๋ฐ ๊ณ ๋ คํ•ด์•ผ ํ•  ์‚ฌํ•ญ๋“ค:

  • ๊ฐ€๋Šฅํ•œ ๊ฒฝ์šฐ ๋กœ์ปฌํ™˜๊ฒฝ์—์„œ ์ง„ํ–‰ํ•˜๋ฉด ํ…์ŠคํŠธ ์—๋””ํ„ฐ์˜ ๋„์›€์„ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [์นด๊ณ  ์‚ฌ์šฉํ•˜๊ธฐ:Using Cargo] ์„ ์ฐธ์กฐํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
  • ํ˜น์€ ๋Ÿฌ์ŠคํŠธ ํ”Œ๋ ˆ์ด๊ทธ๋ผ์šด๋“œ๋ฅผ ์ด์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํŽ˜์ด์ง€ ๋ฐ–์œผ๋กœ ์ด๋™ํ•  ๊ฒฝ์šฐ ์ž‘์„ฑํ•œ ๋‚ด์šฉ์ด ์†Œ์‹ค๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ œ๊ณต๋˜๋Š” ์ฝ”๋“œ ์Šค๋‹ˆํŽซ์€ ์˜๋„์ ์œผ๋กœ ํŽธ์ง‘ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

A few things to consider while solving the exercises:

  • Use a local Rust installation, if possible. This way you can get auto-completion in your editor. See the page about Using Cargo for details on installing Rust.

  • Alternatively, use the Rust Playground.

The code snippets are not editable on purpose: the inline code snippets lose their state if you navigate away from the page.