介绍
在本实验中,你将学习如何编写一个 C++ 程序来检查给定的字符串是否是回文。回文是指与其反转字符串相同的字符串。为了检查回文,我们将反转给定的字符串并将其与原始字符串进行比较。如果两个字符串相同,则给定的字符串是回文,否则不是。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
cpp(("`C++`")) -.-> cpp/BasicsGroup(["`Basics`"])
cpp(("`C++`")) -.-> cpp/ControlFlowGroup(["`Control Flow`"])
cpp(("`C++`")) -.-> cpp/IOandFileHandlingGroup(["`I/O and File Handling`"])
cpp(("`C++`")) -.-> cpp/StandardLibraryGroup(["`Standard Library`"])
cpp(("`C++`")) -.-> cpp/SyntaxandStyleGroup(["`Syntax and Style`"])
cpp/BasicsGroup -.-> cpp/arrays("`Arrays`")
cpp/BasicsGroup -.-> cpp/strings("`Strings`")
cpp/ControlFlowGroup -.-> cpp/conditions("`Conditions`")
cpp/ControlFlowGroup -.-> cpp/for_loop("`For Loop`")
cpp/IOandFileHandlingGroup -.-> cpp/output("`Output`")
cpp/IOandFileHandlingGroup -.-> cpp/user_input("`User Input`")
cpp/StandardLibraryGroup -.-> cpp/string_manipulation("`String Manipulation`")
cpp/SyntaxandStyleGroup -.-> cpp/comments("`Comments`")
cpp/SyntaxandStyleGroup -.-> cpp/code_formatting("`Code Formatting`")
subgraph Lab Skills
cpp/arrays -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/strings -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/conditions -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/for_loop -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/output -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/user_input -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/string_manipulation -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/comments -.-> lab-96181{{"`检查字符串是否为回文`"}}
cpp/code_formatting -.-> lab-96181{{"`检查字符串是否为回文`"}}
end