코딩Coding/Rust연습
-
Rust연습_탐색기창에서VSCode불러오고TestRust프로젝트만들기(첫문서)코딩Coding/Rust연습 2021. 5. 8. 00:48
cmd 엔터 code . -r "프로젝트 이름" cargo new "프로젝트이름" --bin cd "프로젝트이름" cargo run 잘 나오는지 확인하기 변수 만들기 Rust연습_변수 만들고 출력 (tistory.com) Rust연습_변수 만들고 출력 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 변수 만.. economiceco.tistory.com 데이타 형식 알아보기 연습 Rust연습_데이터 형식 알아보기(u32, i32..) (..
-
rust연습_속도란 바로 rust가 짱 ㅋㅋ코딩Coding/Rust연습 2020. 9. 10. 20:52
use std::thread; fn main() { // 변수 message는 변경이 불가능하므로, 여러 개의 태스크에서 동시에 접근해도 안전하다. let message = "Hello"; let mut threads = Vec::new(); // `for` 반복문은 `Iterator` trait을 구현하는 어떤 객체에 대해서나 사용할 수 있다. for num in 0..10 { // `thread::spawn`을 통해 스레드를 생성한다. threads.push(thread::spawn(move || { // println! 은 매크로이며, 컴파일 시간에 변수의 형 검사가 이루어진다. // C나 C++의 단순한 코드 치환 매크로와 달리, 러스트의 매크로는 Scheme과 유사한 구조적 매크로이다. prin..
-
Rust_티스토리_코딩자료_올리기-Highlight.js코딩Coding/Rust연습 2020. 9. 10. 12:29
Tomorrow Night Bright 가 젤 이쁜듯 코딩이 이쁘게 보임 티스토리에 코딩 자료 올리기(최종) - https://economiceco.tistory.com/m/2606 티스토리에 코딩 자료 올리기(최종) https://coding-factory.tistory.com/171 [블로그] 코딩소스에 하이라이트 넣는법 (Highlight.js) 저는 이때까지 본문에 코드를 올릴때 SyntaxHighlighting을 사용하였는데요. 계속 쓰다보니 단점이 한 두개가 아.. economiceco.tistory.com
-
-
Rust연습_ X출력하기코딩Coding/Rust연습 2020. 9. 5. 23:35
fn main() { let x = 45; println!("The value of x is {}", x); } 결과 fn main() { let x = 45; println!("The value of x is {}", x); x = 60; println!("The value of x is {}", x); } 결과 fn main() { let mut x = 45; println!("The value of x is {}", x); x = 60; println!("The value of x is {}", x); } 결과 ▷ 다른글 보기 ◁ ★★★Rust Toturial 로드맵(Road Map)첫시작!-★★★(총정리)Rustacean이 되어 보자!!Let's go! (tistory.com) ★★★Rust To..
-
Rust연습_주석처리하기 Comment코딩Coding/Rust연습 2020. 9. 5. 23:10
fn main() { // this is an example. /* here is a comment */ println!("Hello, world!"); } ▷ 다른글 보기 ◁ ★★★Rust Toturial 로드맵(Road Map)첫시작!-★★★(총정리)Rustacean이 되어 보자!!Let's go! (tistory.com) ★★★Rust Toturial 로드맵(Road Map)첫시작!-★★★(총정리)Rustacean이 되어 보자!!Let's go! Rust 프로그래머는 스스로를 Rustacean 이라고 부름 Rust Toturial 로드맵(Road Map) 한글로 된 Rust 설명서 들어가기 앞서 - The Rust Programming Language (rinthel.github.io) 들어가기 앞..