zoukankan      html  css  js  c++  java
  • set<char*>s

    #include <string>
    #include <set>
    
    #include <iostream>
    using namespace std;
    int main()
    {
    
        char str[10002];
        while (gets(str))
        {
            set<char*>s;
            s.insert("aa");
            s.insert("aa");
            s.insert("ab");
            printf("%d
    ",s.size());
        }
    
    }
    View Code

    #include <string> #include <set>

    #include <iostream>

    using namespace std;

    int main()

    {

        char str[10002];

        while (gets(str))  

       {     

        set<char*>s;    

         s.insert("aa");  

           s.insert("aa");

            s.insert("ab");

            printf("%d ",s.size());  

       }

    }

     

    #include <string>
    #include <set>
    
    #include <iostream>
    using namespace std;
    int main()
    {
    
        char str[10002];
        while (gets(str))
        {
            set<char*>s;
            char *p;
            p="ac" ;
            char ch[]={'a','c'    };
            char ch1[]={'a','c'    ,''}    ;
    
            s.insert("p");
            s.insert("ch");
            s.insert("ch1");
            printf("%d
    ",s.size());
        }
    
    }
    View Code

    #include <string>

    #include <set>

    #include <iostream>

    using namespace std;

    int main() {

        char str[10002];

        while (gets(str))

        {  

           set<char*>s;

            char *p;

            p="ac" ;

            char ch[]={'a','c' };

            char ch1[]={'a','c' ,''} ;

            s.insert("p");

            s.insert("ch");  

           s.insert("ch1");   

          printf("%d ",s.size());  

       }

    }

  • 相关阅读:
    深入浅出HTTP协议
    HTTP协议 URL
    HTTP Request
    HTTP 响应
    浅谈OpenStack架构
    Google云平台技术架构
    接口文档神器之apidoc
    .haccess 配置生效
    php namespace与use
    mysql 带条件的sum/count 使用技巧
  • 原文地址:https://www.cnblogs.com/2014acm/p/3887568.html
Copyright © 2011-2022 走看看