假設沒有結構,而我們要表示平面上的點,就必需要用兩個變數,如以下Rust 虛擬碼: ... For abs function use std::f64; struct Point { x: f64, y: f64, } ...
確定! 回上一頁