题解列表

筛选

字符逆序-题解(C++代码)

摘要:#思路 将一行字符串赋值给一个string,然后使用reverse将string的内容倒置。 #心得 1.使用reverse需要添加#include 2.string字符串可以直接使用str……