介绍
在本实验中,你将学习如何编写 C++ 代码来检查给定的字符串是否是回文(Palindrome)。回文是一种单词、短语或字符序列,无论正向还是反向读取,其内容都相同。例如,"level" 是一个回文,因为无论正向还是反向读取,它都是一样的。在本实验中,我们将编写一个简单的程序,该程序将接收一个字符串作为输入,并检查它是否是回文。
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/SyntaxandStyleGroup(["`Syntax and Style`"])
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/IOandFileHandlingGroup -.-> cpp/files("`Files`")
cpp/SyntaxandStyleGroup -.-> cpp/code_formatting("`Code Formatting`")
subgraph Lab Skills
cpp/strings -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/conditions -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/for_loop -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/output -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/user_input -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/files -.-> lab-96180{{"`检查字符串是否为回文`"}}
cpp/code_formatting -.-> lab-96180{{"`检查字符串是否为回文`"}}
end