Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のステートメントは、どのような状況でも合法ですか?
s.*p = 5;
では、 ドット演算子の右オペランドとして式を使用できますか? なんで?
pはメンバーへのポインターであり、演算子sを使用してクラスオブジェクトを介してポイントされたメンバーにアクセスします。.*
p
s
.*