简单使用reverse

    技术2026-02-15  18

    头文件#include <algorithm> 取反string

    string = s; cin >> s; reverse(s.begin(), s.end()); cout << s;

    取反字符数组

    char l[int] = "..." reverse(l, l+strlen(l)); cout << l;

    [参考]https://blog.csdn.net/qq_39093164/article/details/90107832

    Processed: 0.010, SQL: 9