和C++不同的是,match使用 _ 代替C++中的 default ,并且match中每一种情况后不必加 break; 语句。 以下为示例. rust. #[derive(Debug)] enum COIN{ ...
確定! 回上一頁