介绍
在本实验中,我们将学习如何使用 C++ 编程语言打印修改后的弗洛伊德三角形(Floyd's triangle)模式。修改后的弗洛伊德三角形模式是一个由自然数组成的直角三角形数组,其中每一行以行号开头,并且包含的列数等于行号。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
cpp(("C++")) -.-> cpp/ControlFlowGroup(["Control Flow"])
cpp(("C++")) -.-> cpp/IOandFileHandlingGroup(["I/O and File Handling"])
cpp(("C++")) -.-> cpp/SyntaxandStyleGroup(["Syntax and Style"])
cpp/ControlFlowGroup -.-> cpp/for_loop("For Loop")
cpp/IOandFileHandlingGroup -.-> cpp/output("Output")
cpp/IOandFileHandlingGroup -.-> cpp/user_input("User Input")
cpp/SyntaxandStyleGroup -.-> cpp/comments("Comments")
cpp/SyntaxandStyleGroup -.-> cpp/code_formatting("Code Formatting")
subgraph Lab Skills
cpp/for_loop -.-> lab-96150{{"C++ 修改版弗洛伊德三角形"}}
cpp/output -.-> lab-96150{{"C++ 修改版弗洛伊德三角形"}}
cpp/user_input -.-> lab-96150{{"C++ 修改版弗洛伊德三角形"}}
cpp/comments -.-> lab-96150{{"C++ 修改版弗洛伊德三角形"}}
cpp/code_formatting -.-> lab-96150{{"C++ 修改版弗洛伊德三角形"}}
end