zoukankan      html  css  js  c++  java
  • reverse

    reverse

      [英][rɪ'vɜ:s][美][rɪˈvɚs]

    vt.& vi.(使)反转; (使)颠倒; 掉换,交换; [法]撤消,推翻; 

    vi.      倒退; [桥牌]逆叫; 

    adj.  反面的; 颠倒的; 倒开的; [生]倒卷的; 

    n.      倒转,反向; [机]回动; 倒退; 失败; 

    #include <iostream>
    
    using namespace std;
    
    #include<string>
    
    #include<algorithm>
    
    int main(int argc, char *argv[])
    
    { 
    
          string s;  
    
           cin>>s;  
    
               s=s+'8'+'9';  
    
           reverse(   s.begin(),   s.end()  );  
    
                   cout<<s<<endl;    
    
    cout<<s.c_str()<<endl;
    
       return 0;
    
    }
    View Code

    #include <iostream>

    using namespace std;

    #include<string>

    #include<algorithm>

    int main(int argc, char *argv[])

          string s;  

           cin>>s;  

           

           reverse(   s.begin(),   s.end()  );  

      cout<<s<<endl;    

    cout<<s.c_str()<<endl;

       return 0;

    }

    **************************************************************************************************************************

    #include <iostream>

    using namespace std;

    #include<string>

    #include<algorithm>

    int main(int argc, char *argv[])

    {  

          string s="asdfjkl";  

          reverse(   s.begin(),   s.end()  );  

                 cout<<s<<endl;    

    return 0;

    }

    #include <iostream>

    using namespace std;

    #include<string>

    #include<algorithm>

    int main(int argc, char *argv[])

    {  

               string s="abcdefgh";

                           s=s+'8'+'9';  

                   reverse(  s.begin(),   s.end()  );  

            cout<<s<<endl;  

     return 0;

    }

     

     

    #include <iostream>

    using namespace std;

    #include<string>

    #include<algorithm>

    int main(int argc, char *argv[])

    {  

            string s="abcdefgh";  

                  s=s+'8'+'9';

         reverse(  s.begin(),  s.end()  );

       cout<<  s                <<endl;    

    cout<<     s.c_str()    <<endl;

       return 0;

    }

     

    #include <iostream>

    using namespace std;

    #include<string>

    #include<algorithm>

    int main(int argc, char *argv[])

          string s;  

           cin>>s;  

               s=s+'8'+'9';  

           reverse(   s.begin(),   s.end()  );  

                   cout<<s<<endl;    

    cout<<s.c_str()<<endl;

       return 0;

    }

  • 相关阅读:
    可视化工具Grafana:简介及安装
    数据采集工具Telegraf:简介及安装
    怒怼某些自媒体培训机构,吃相不要太难看了!!!
    时序数据库InfluxDB:简介及安装
    jmeter(二十五)linux环境运行jmeter并生成报告
    Linux:CentOS7.4新建用户并授权
    服务端监控工具:Nmon使用方法
    Locust:简介和基本用法
    Quant Finance Master’s Guide 2020
    数据科学入门前需要知道的10件事
  • 原文地址:https://www.cnblogs.com/2014acm/p/3876688.html
Copyright © 2011-2022 走看看