字串符相反的顺序输出

 1 #include <iostream>
 2 using namespace std;
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 
 5 int main(int argc, char** argv) {
 6     char *a="BASIC";
 7     for(int i=4;i>=0;i--)
 8     {
 9         cout.put(*(a+i));
10         cout.put('
');
11     }
12     return 0;
13 }
原文地址:https://www.cnblogs.com/borter/p/9405527.html