-
Rust연습_변수 만들고 출력(Create and use variables)코딩Coding/Rust연습 2021. 5. 8. 00:51728x90
rust에서는 변수를 넣은 것을 bound 라고 표현 합니다.
Values can be bound to variables by using the let keyword.
fn main() { let a_number = 10; let a_boolean = true; println!("the number is {}.", a_number); println!("the boolean is {}.", a_boolean); }
결과
변수 만들기 및 사용 - Learn | Microsoft Docs
▷ 다른글 보기 ◁
★★★Rust Toturial 로드맵(Road Map)첫시작!-★★★(총정리)Rustacean이 되어 보자!!Let's go! (tistory.com)
반응형'코딩Coding > Rust연습' 카테고리의 다른 글
Rust연습_문자열을 숫자로 변환해야 하고 .parse() 메서드를 사용 (0) 2021.05.08 Rust연습-Shadowing (0) 2021.05.08 Rust연습-Mutability_ In Rust, variable bindings are immutable by default. (0) 2021.05.08 Rust연습_데이터 형식 알아보기(u32, i32..) (0) 2021.05.08 Rust연습_탐색기창에서VSCode불러오고TestRust프로젝트만들기(첫문서) (0) 2021.05.08 rust연습_속도란 바로 rust가 짱 ㅋㅋ (0) 2020.09.10 Rust_티스토리_코딩자료_올리기-Highlight.js (0) 2020.09.10 Rust연습_if절_else if _ else (0) 2020.09.05