Rust hello world !

特点: 安全,速度,并发

文件:hello_world.rs

代码:

1 fn main() {
2     println!("hello world!");
3 }

执行:rustc hello_world.rs

执行:./hello_world

结果:屏幕上就出现字符串:hello world

 

posted @ 2017-04-16 17:18  天道酬勤,坚持!  阅读(447)  评论(0编辑  收藏  举报