下面這段是參考C++ primer Plus, 4/E 寫的範例: 可在宣告struct 時,順道給定義兩個變數:John and Mary. struct student. {. char class;. int num;. } John, Mary;.
確定! 回上一頁