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.
私は C++ でのプログラミングに比較的慣れていないため、クラスでどれだけのことができるかわかりません。ただし、ヘッダー ファイルにクラスを作成し、そのクラスで if ステートメントを使用できるかどうか疑問に思っていました。
そのクラスのインライン メンバー関数で if ステートメントを使用できます。関数の外で if ステートメントを使用することはできません。(「ステートメント」はそれを提供します。ステートメントは関数内にのみ表示できます。)