推 craworm:嗯,謝謝!^^ 11/14 21:56
※ 引述《craworm (主耶穌(阿耶))》之銘言:
: 請問一下
: page 70&71
: int _id: 30;
: 這是什麼意思?
: 還有p71的程式碼到底在做什麼?
Page 70:
class A {
int _id: 30;
int _gender: 1;
int _isMember: 1;
};
means "_id", "_gender", and "_isMember" are 30, 1, and 1-bit wide.
They together share the 32-bit integer.
As for page 71, never mind. We will see it again in the final project. Let me
explain it then.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.121.131.138