If I have a struct like
struct account {
int account_number;
};
Then what's the difference between doing
myAccount.account_number;
and
myAccount->account_number;
or isn't there a difference?
If there's no difference, why wouldn't you just use the .
notation rather than ->
? ->
seems so messy.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…