在C++ 中,若struct 中的元素包含有陣列,可以使用for loop 去設定該陣列的值。如以下的程式所示: struct machine { int assignedJobs[12]; double ...
確定! 回上一頁