Reference All content written in this bash directory is referenced from the book Learn Bash The Hard Way. If you want to read about bash, head to my...
Functions Khai báo một hàm. fn function_name() { } Một chương trình có thể có nhiều hàm. fn main() { another_function(); } fn another_function() { println!("Hello!"); } Function...
Setup dự án Dùng cargo để setup dự án mới cargo new guessing_game cd guessing_game Nhận input Chỉnh sửa file src/main.rs như dưới đây. use std::io; fn main()...
Cài đặt Xem cách cài đặt tại website của Rust. Đối với linux chỉ cần dùng lệnh sau trong terminal curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh...