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;

    }

  • 相关阅读:
    T-SQL 数据库数据的高级查询
    数据库 T-sql 基础语句
    数据库的定义、关系型数据库的四种约束。。
    linux上使用crontab任务调度
    pip list 显示出以下错误: DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] se
    python报错:NameError: name 'converter' is not defined
    python3报错:TypeError: can't concat bytes to str
    Fiddler如何手机抓包
    数据分析----VBA的使用
    Excel进行数据分析
  • 原文地址:https://www.cnblogs.com/2014acm/p/3876688.html
Copyright © 2011-2022 走看看