次のような使用を許可するカスタム ofstream クラスを C++ で作成しようとしています。
RSAKeys keys = LoadRSAKeys("public.pub", "private.priv");
EncryptedOFStream encofstream("outputfile.txt", keys);
encofstream << "Some text";
// Now in outputfile.txt should be encrypted text
ofstream クラスの正しい継承に問題があります。PHP を使いすぎると、脳が損傷します。基本的な骨格を教えてください。