使用字串建構函式來反轉字串; 使用 std::reverse() 演算法反轉字串 ... std::reverse; int main(){ string tmp_s = "This string will be reversed"; ...
確定! 回上一頁