自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 rust实现一个tcp server

服务端use std ::net::{TcpListener,TcpStream};use std::thread;use std::time;use std::io;use std::io::{Read,Write};fn handle_client(mut stream: TcpStream) -> io::Result<()>{ let mut buf = [0;512]; for _ in 0..1000{ let bytes_

2021-05-24 22:20:12 1345

原创 rust编程语言(2)

变量和可变性 fn main() { let x = 5;//没加mut 属于不可变变量 println!("The value of x is: {}", x); x = 6;//程序运行到此次出现错误 println!("The value of x is: {}", x);} 变量和常量的区别 const MAX_POINTS: u32 = 100_000;声明常量使用 const 关键字而不是 let 隐藏 fn main(...

2021-05-21 00:37:38 109

原创 linux指令——shutdown用法

shutdown用法说明shutdown用法示例:

2021-05-19 00:00:45 152

原创 记录自学rust语言(1)

这是一个用rust编写的猜数字游戏。use std::io;use rand::Rng;use std::cmp::Ordering;fn main() { println!("Guess the number!"); let secret_number = rand::thread_rng().gen_range(1,101); //println!("The secret number is:{}",secret_number); loop {...

2021-05-18 21:55:15 192 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除