ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

cpp home

2020-06-30 13:56:58  阅读:9  来源: 互联网

标签:return cout int char cpp home include struct


https://en.cppreference.com/w/

 

 

 

#include <string>
using namespace std;

int  f(unsigned long long d){
    return 1;
}
//int  f( long long d){
//    return 1;
//}


int fs(const string& p, char *o){
    return p == o;
}

int cmain(int argc, char *argv[])
{
    char e[]="efawse";
    auto z=fs("efawse", e);
    int k=9;
    k=f(k);

    return 0;
}


#include "tuple.h"


struct E{
    struct D{
        void f(E *e){
            return z(e);
        }
        void z(E *e){
            e->f();
        }
    };

private:
    void f(){

    }
};


#include <iostream>
using std::cout;

typedef void (*TestFuncType)(void);
#include <string>
#include <list>

typedef std::string String;

int smain(int argc, char *argv[])
{
    E e;
    E::D d;
    d.f(&e);
    int k=9;
    Tuple<int, char> m (k, '7');
    return 0;
}



struct A{
    A(){

    }
//    A(const A&){
//cout<<"A&\n";
//    }
//    A(A&&){
//cout<<"A&&\n";
//    }
     const char * p;
};

struct B{
    B(){

    }
//    B(const B&){
//cout<<"B&\n";
//    }
//    B(B&&){
//        cout<<"B&&\n";
//    }
};


struct C{
    A a;
    B b;
};



int main(int argc, char *argv[])
{
//    A a ;
//    a.p = 98;
//    A b = a;
    C c;
    c.a.p = "efs";
    cout << "see\n";
    C e((C&&)c);
    cout << "end\n";
    return 0;
}

标签:return,cout,int,char,cpp,home,include,struct
来源: https://www.cnblogs.com/Janly/p/13213301.html

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有