可能重复: C++反向数组
如何反转字符数组?像这样:
char word1[10] = "this"; char word2[10] = word1[10] // in reverse cout<<word2; // I want it to output "siht"
c++
c++ ×1