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;

    }

  • 相关阅读:
    巧妇难为无米之炊( Model数据)
    jsp后台取出request请求头
    JSP本质的理解(浏览器调试,response里面的文本都是out.write写入网络流)
    【JZOJ6405】【NOIP2019模拟11.04】c
    【JZOJ6404】【NOIP2019模拟11.04】B
    【JZOJ6403】【NOIP2019模拟11.04】a
    【JZOJ6385】【NOIP2019模拟2019.10.23】B
    【JZOJ6379】【NOIP2019模拟2019.10.06】小w与密码(password)
    【JZOJ6373】【NOIP2019模拟2019.10.04】式神[八云蓝]
    【JZOJ6376】【NOIP2019模拟2019.10.05】樱符[完全墨染的樱花]
  • 原文地址:https://www.cnblogs.com/2014acm/p/3876688.html
Copyright © 2011-2022 走看看