首页 » 排名链接 » 软件开发的门槛越来越低了(开发挑战赛语言头条门槛)

软件开发的门槛越来越低了(开发挑战赛语言头条门槛)

落叶飘零 2024-12-01 20:27:49 0

扫一扫用手机浏览

文章目录 [+]

最近接触到了 Rust 变成语言, 风格与C语言类似,但是开发起来轻松多了。

创建项目, 一个命令搞定

$ cargo new hello_world Created binary (application) `hello_world` package

然后一条命令就可以编译运行,

软件开发的门槛越来越低了(开发挑战赛语言头条门槛) 排名链接
(图片来自网络侵删)

$ cd hello_world;$ cargo run Compiling hello_world v0.1.0 (D:\projcts\hello_world) Finished dev [unoptimized + debuginfo] target(s) in 0.50s Running `target\debug\hello_world.exe`Hello, world!

有没有感觉很方便。

下面看看程序的结构,配置文件,及code

$ ls -lR.:total 1-rw-r--r-- 1 pp 197121 180 Nov 15 21:33 Cargo.tomldrwxr-xr-x 1 pp 197121 0 Nov 15 21:33 src/./src:total 1-rw-r--r-- 1 pp 197121 45 Nov 15 21:33 main.rs$ cat Cargo.toml[package]name = "hello_world"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]$ cat src/main.rsfn main() { println!("Hello, world!");}

标签:

相关文章

女装(女装会员让你钻石营收)

·1、预存一定金额到会员卡中,可用于二次消费抵扣;·2、享受所有衣服的88折优惠;·3、邀请好友购买,可获得成交额的10%奖励;·...

排名链接 2024-12-07 阅读568 评论0