はじめに
この実験では、C++ で配列を使わずにユーザーが入力した n 個の数の平均を計算する方法を学びます。コードを 1 行ずつ見て、それがどのように機能するかを理解します。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
cpp(("C++")) -.-> cpp/StandardLibraryGroup(["Standard Library"])
cpp(("C++")) -.-> cpp/SyntaxandStyleGroup(["Syntax and Style"])
cpp(("C++")) -.-> cpp/BasicsGroup(["Basics"])
cpp(("C++")) -.-> cpp/ControlFlowGroup(["Control Flow"])
cpp(("C++")) -.-> cpp/IOandFileHandlingGroup(["I/O and File Handling"])
cpp/BasicsGroup -.-> cpp/variables("Variables")
cpp/BasicsGroup -.-> cpp/operators("Operators")
cpp/ControlFlowGroup -.-> cpp/for_loop("For Loop")
cpp/IOandFileHandlingGroup -.-> cpp/output("Output")
cpp/IOandFileHandlingGroup -.-> cpp/user_input("User Input")
cpp/StandardLibraryGroup -.-> cpp/math("Math")
cpp/SyntaxandStyleGroup -.-> cpp/code_formatting("Code Formatting")
subgraph Lab Skills
cpp/variables -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/operators -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/for_loop -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/output -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/user_input -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/math -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
cpp/code_formatting -.-> lab-96156{{"ユーザー入力の N 個の数の平均を求める"}}
end