2018-05-19

auto與decltye的區(qū)別

//typeid只能獲取類型 不能獲取 引用 常量
//auto無(wú)法區(qū)分常量變量 也無(wú)法區(qū)分引用變量
//decltype 可以獲取常量屬性尚骄,引用屬性
//auto不可以放在結(jié)構(gòu)體內(nèi)部

#include<vector>

void maiz1()
{
    const vector<int>myint{1,2,3,4,5};
    auto inta = myint[1];
    cout << typeid(inta).name() << endl;

    decltype(myint[1]) intd = myint[1];
    cout << typeid(intd).name() << endl;

    cin.get();
}

type_traits

#include<type_traits>

template<class T1,class T2>
void same(const T1 &t1,const T2&t2)
{
    cout << typeid(T1).name() << is_integral<T1>::value << endl;
    cout << is_same<T1, T2>::value << endl;
    //判斷模板的數(shù)據(jù)類型
}


//typename enable_if< is_same<T1,T2>::vlaue >::type *p =nullptr 默認(rèn)參數(shù)
//typename      enable_if< is_same<T1, T2>::vlaue >::type
// enable_if<    is_same<T1, T2>::vlaue     >::type

template<typename T1,typename T2>
void check_type1(const T1 &t1, const T2 &t2,
    typename enable_if< is_same<T1,T2>::vlaue >::type *p =nullptr)
{
    cout << " " << t1 << " " << t2 << endl;
    cout << "類型相同" << endl;
}

template<typename T1,typename T2>
void check_type1(const T1 &t1, const T2 &t2,
    typename enable_if<!is_same<T1, T2>::vlaue >::type *p = nullptr)
{
    cout << " " << t1 << " " << t2 << endl;
    cout << "類型不相同" << endl;
}


void mainz2()
{
    int i(10);
    int &ri(i);
    int &&rri(i + 3);
    cout << is_lvalue_reference<decltype(i)>::value << endl;
    cout << is_lvalue_reference<decltype(ri)>::value << endl;
    cout << is_rvalue_reference<decltype(ri)>::value << endl;
    //判斷是左值引用還是右值引用
    //is_rvalue_reference<decltype(ri)>::value 

    int a[5];
    int*p = a;
    cout << is_array<decltype(a)>::value << endl; //判斷是不是數(shù)組
    cout << is_array<decltype(p)>::value << endl;

    int num = 20;
    double db = 20;
    string str1;
    cout << is_integral<decltype(num)>::value << endl; 
    cout << is_integral<decltype(db)>::value << endl;
    cout << is_class<string>::value << endl;
    cout << is_class<decltype(str1)>::value << endl;
    //判斷數(shù)據(jù)類型

    same(11, 22);
    same(11.1, 22);
    same(3, "123");

    check_type1(10, 10);

    check_type1(1, 10.1);

    cin.get();
}

枚舉體

//C語(yǔ)言枚舉 本質(zhì)類型檢測(cè)不嚴(yán)格 允許類型不一致


//C語(yǔ)言枚舉 本質(zhì)類型檢測(cè)不嚴(yán)格 允許類型不一致
enum color {
    red,
    yellow,
    white,
    blue
};
//沒(méi)有賦值  默認(rèn)0-遞增  賦值從賦值開(kāi)始遞增

//指定數(shù)據(jù)類型  枚舉名稱不可以重名  外部不可以 內(nèi)部不可以
enum coloros :char
{
    red1,
    yellow1,
    white1,
    blue1
};

enum class colorX:unsigned long 
{
    red2,
    yellow2,
    white2,
    blue2
};

enum class jun :int
{
    司令=10,
    軍長(zhǎng)=9,
    師長(zhǎng)

};

void mainz3()
{
    enum color color1(red);
    enum color color2(color::white);//初始化一般形式
    //color1 = 1;  //C++不可以 類型檢測(cè)嚴(yán)格

    colorX c1(colorX::red2);// 遵循嚴(yán)格

    cin.get();
}

占位參數(shù)


//預(yù)留參數(shù)接口 參數(shù)無(wú)法調(diào)用
void add(int a,int b,int) //C++允許有占位:  
{
  
}

template<class T>
void show(T a, T, T c) //預(yù)留接口  第二個(gè)參數(shù)無(wú)法調(diào)用
{

}

void mainz4()
{
    add(1, 2, 3);
    cin.get();
}

寄存器變量


void mainz5()
{
    register int num = 10;// register  對(duì)于CPP來(lái)說(shuō) 只是建議
    cout << &num << endl; //CPP自動(dòng)優(yōu)化到內(nèi)存  編譯器優(yōu)化  檢測(cè)到取地址 就會(huì)優(yōu)化為內(nèi)存變量
    //&num  //C語(yǔ)言無(wú)法取寄存器地址 

    cin.get();
}

CPP左值右值自動(dòng)轉(zhuǎn)換


void mainz6()
{
    
    //C++ 會(huì)把有內(nèi)存實(shí)體的右值轉(zhuǎn)換為左值
    int i(3);
    (++i) = 13;
    (i = 2) = 6;
    cout << i << endl;

    cin.get();
}

共用體

//節(jié)約內(nèi)存
//CPP共用體 可以初始化 內(nèi)部可以有函數(shù)
//共用體 共享內(nèi)存 不計(jì)入代碼區(qū)大小
//union 默認(rèn)是公有 可以設(shè)置為私有
//可以實(shí)現(xiàn)封裝 只有一個(gè)變量
//共用體無(wú)法繼承 多態(tài)

union MyUnion
{
    int num;
    double data;
    void go()
    {
        cout << "dd" << endl;
    }
};

void mainz7()
{
    MyUnion my1{ 14 }; //只能初始化一個(gè)變量
    cout << my1.num << endl;
    my1.data = 10.55;
    cout << my1.num << endl;
    cin.get();
}

硬盤(pán)模式查詢文件流

#include<fstream>
#include<memory>
#include<string>
#include<cstring>
#include<cstdlib>
//C++文件 ifstream ofstream
//cin cout  fin fout  >> <<適用于屏幕 文件
//string
void mainz8()
{
    ifstream fin("E:\\New\\視頻\\智峰互聯(lián)\\資料\\大數(shù)據(jù)相關(guān)數(shù)據(jù)\\kaifang.txt");
    ofstream fout(R"(C:\res.txt)");
    if (!fin || !fout)
    {
        cout << "文件打開(kāi)失敗" << endl;
        return;
    }

    //char name[300]{ 0 };
    string name;
    cin >> name;

    while (!fin.eof()) //沒(méi)有到文件末尾 就繼續(xù)
    {
        //char str[500]{ 0 };
        //fin.getline(str,500); //讀取一行
        //char*p = strstr(str, name);

        string str;
        int pos = str.find_first_of(name);
        //.find_first找到第一個(gè)相同的字符  find查找整體

        //fin.getline(const_cast<char*>(str.c_str()) , 500);

        if (pos != -1)
        {
            cout << str << endl;
            fout << str << endl; //打印到屏幕 寫(xiě)入到文件
        }
    }


    fin.close();
    fout.close(); //關(guān)閉文件
    system(R"(C:\res.txt)");
    cin.get();
}

內(nèi)存模式查詢文件流


#include<vector>
#include<fstream>  //文件流
#include<memory>

vector<string> g_all; //動(dòng)態(tài)數(shù)組  每一個(gè)元素都是字符串
int i = 0;

//效率低 因?yàn)镾TL有很多優(yōu)化

void loadmem()
{
    ifstream fin("E:\\New\\視頻\\智峰互聯(lián)\\資料\\大數(shù)據(jù)相關(guān)數(shù)據(jù)\\kaifang.txt");
    if (!fin )
    {
        cout << "文件打開(kāi)失敗" << endl;
        return;
    }

    while (!fin.eof()) //沒(méi)有到文件末尾 就繼續(xù)
    {
        char str[500]{ 0 };
        fin.getline(str, 500);//讀取一行
        string putstr;
        putstr += str; //生成C++字符串
        g_all.push_back(putstr);  //壓入

        if (i++ > 10000)
        {
            break;
        }

    }

    fin.close();

}


void search()
{
    while (1)
    {
        string str;
        cin >> str;
        for (auto i : g_all)
        {
            int pos = i.find(str,0); //查找
            if (pos != -1)
            {
                cout << i << endl;
            }
        }
    }
}

void mainz9()
{
    loadmem();
    search();

    cin.get();
}

CPP結(jié)構(gòu)體

//1 C++結(jié)構(gòu)體可以為空 C不可以
//2 C++結(jié)構(gòu)體可以有默認(rèn)值 C不可以
//3 C++結(jié)構(gòu)體定義變量無(wú)需關(guān)鍵字struct
//4 C++結(jié)構(gòu)體可以有函數(shù)
//5 變量是函數(shù)指針 是變量 是lamba函數(shù)塊 不計(jì)入體積
//6 結(jié)構(gòu)體默認(rèn)公有 可以設(shè)置為私有
//7 沒(méi)有私有變量情況下初始化方法
________//point p1{ 1,2 };
________ //point *p = new point{ 1,2 };

________ //point px[2] = { { 1,2 },{ 3,4 } };
________ //point *pj = new point[2]{ { 1,2 },{ 3,4 } };
________ //8 私有 需要構(gòu)造函數(shù) 按照這個(gè)風(fēng)格初始化
________ //pointit p11(1, 2);
________ //pointit *p11 = new pointit(3, 4); //指針

________ //pointit pss[3]{ pointit(3, 4) ,pointit(8, 4) ,pointit(5, 4) }; //數(shù)組
________ //pointit *pas = new pointit[3]{ pointit(3, 4) ,pointit(8, 4) ,pointit(5, 4) };//堆_________上數(shù)組
//9 結(jié)構(gòu)體的聲明 只能創(chuàng)建指針或者引用 擴(kuò)展結(jié)構(gòu)體作用范圍
//10 結(jié)構(gòu)體內(nèi)部可以創(chuàng)建引用或者指針
//11 匿名結(jié)構(gòu)體 不可以初始化
//12 結(jié)構(gòu)體之間直接賦值 淺拷貝 只是賦值值 一般數(shù)據(jù) 指針(不復(fù)制指向的地址)
//13 賦值 無(wú)論私有還是公有都能拷貝

struct mystructX
{
    int num = 3;
    function<void(void)> fun = []() {};
    //auto fu  //結(jié)構(gòu)體無(wú)法保存auto

};

struct mystructXX
{

    void(*p)() = []() {};  //指針4字節(jié)

    function<void(void)> fun = []() {};  //40字節(jié)
    function<void(int)> fun1 = [](int a) {};
    function<void(char*)> fun2 = [](char*str) {};

};


struct pointl; //結(jié)構(gòu)體的聲明 只能創(chuàng)建指針或者引用

struct point
{
    int x;
    int y;
    struct point*p;
    struct point& rp; //結(jié)構(gòu)體內(nèi)部可以創(chuàng)建引用或者指針

};
struct pointit
{
public:
    pointit(int a,int b):x(a),y(b)
    {
      
    }
private:
    int x;
    int y;
};

struct wu
{
    virtual void show()
    {
        cout << "老子" << endl;
    }
};
struct  xiaowu:public wu
{
    void show()
    {
        cout << "小子是大爺" << endl;
    }
};

void mainz10()
{
    //fun 包裝器  一個(gè)40個(gè)字節(jié)
    //cout << sizeof(mystructXX) << endl;
    point p1{1,2};
    point *p = new point{ 1,2 };
    
    point px[2] = { {1,2},{3,4} };
    point *pj = new point[2]{ { 1,2 },{ 3,4 } };
     
    pointit p11(1, 2);
    pointit *p11 = new pointit(3, 4); //指針

    pointit pss[3]{ pointit(3, 4) ,pointit(8, 4) ,pointit(5, 4) }; //數(shù)組
    pointit *pas=new pointit[3]{ pointit(3, 4) ,pointit(8, 4) ,pointit(5, 4) };//堆上數(shù)組

    p1.x = p1.y = 20;

    wu*pw = new wu; //多態(tài)
    pw->show();
    pw = new xiaowu;
    pw->show();


    cin.get();
}

異常

//異常與錯(cuò)誤不一樣 異常 一般能夠正常工作
//錯(cuò)誤就是程序無(wú)法正常工作 無(wú)法編譯
//異常讓程序在錯(cuò)誤的輸入 文件不存在 內(nèi)存異常的情況下仍然可以正常工作
//try throw catch

int  divvv(int a, int b)
{

    try //嘗試
    {

        if (b == 0)
        {
            throw 1; //拋出異常  跳到catch
        }
        cout << a << " " << endl;
        return a / b;
    }
    catch (int code) //捕獲錯(cuò)誤
    {
        if (code == 1)
        {
            cout << "被除數(shù)不可以為0" << endl;
        }

        return 0;
    }

}

void mainz11()
{

    int a, b;
    cin >> a >> b;
    divvv(a, b);

    cin.get();
}

CPP數(shù)據(jù)類型極限


#include<limits>

void mainz12()
{
    //cout << numeric_limits<int>::max() << endl;
    //cout << numeric_limits<int>::min() << endl;
    cout << numeric_limits<int>::lowest() << endl; //最小 整數(shù)含義一樣

    //cout << numeric_limits<double>::min() << endl; // 對(duì)于double  能表示最小精度的數(shù)
    //cout << numeric_limits<double>::lowest() << endl; //能表示最小的數(shù)

    cin.get();
}

算法容器函數(shù)


#include<functional>
#include<numeric>
#include<vector>
#include<algorithm>


using namespace std::placeholders;

template<class T>
bool getT(T data)
{
    return data % 2 == 0;
}


int get(int num)
{
    return num % 2 == 0;
}


struct  myx
{
    int get(int num)
    {
        return num % 2 == 0;
    }

};

struct XXXX
{
    int operator()(int num)
    {
        return num % 2 == 0;
    }
};

void mainz13()
{
    vector<int> myint{1,2,3,4,5,6,7,8,9,10};


    //計(jì)數(shù)滿足_Pred(第三個(gè)參數(shù))的元素
    int num = count_if(myint.begin(), myint.end(), [](int data) ->bool {return data % 2 == 0;});
    int num1 = count_if(myint.begin(), myint.end(),XXXX());
    XXXX x1;
    int num2 = count_if(myint.begin(), myint.end(), x1);
    int num3 = count_if(myint.begin(), myint.end(), get);
    int num4 = count_if(myint.begin(), myint.end(), get);

    myx my1;
    auto fun = bind(&myx::get,&my1,_1);
    int num5 = count_if(myint.begin(), myint.end(), fun);

    int num6 = count_if(myint.begin(), myint.end(),getT<int>);


    cout << num << endl;
    cout << num1 << endl;


    cin.get();
}

匿名對(duì)象與分配內(nèi)存時(shí)手動(dòng)控制構(gòu)造與析構(gòu)

#include<memory>
#include<allocators>
#include<cstdlib>

class mycalssx
{
public:
    mycalssx()
    {
        cout << "mycalssx()" << endl;
    }

    mycalssx(const mycalssx&my)  //拷貝構(gòu)造函數(shù)
    {
        cout <<"const mycalssx()" << endl;
    }

    //mycalssx()
    //{
    //  cout << "mycalssx()" << endl;
    //}

private:

};


void mainz14()
{
    mycalssx*p = new mycalssx;


    allocator<mycalssx>my; //分配器  可以自動(dòng)控制構(gòu)造 和 析構(gòu)的時(shí)間
    mycalssx*px = my.allocate(1);//分配一個(gè)元素
    my.construct(px,mycalssx()); //調(diào)用構(gòu)造函數(shù)  //mycalssx() 匿名對(duì)象 銷毀
    my.destroy(px);//釋放內(nèi)存  調(diào)用析構(gòu)
    my.deallocate(px,1); //直接釋放



    mycalssx*px3 = my.allocate(3);//分配3個(gè)元素
    my.construct(px3, mycalssx()); 
    my.construct(px3+1,mycalssx()); 
    my.construct(px3+2, mycalssx()); 
    my.destroy(px3);//釋放內(nèi)存  調(diào)用析構(gòu)
    my.destroy(px3+1);//釋放內(nèi)存  調(diào)用析構(gòu)
    my.destroy(px3+2);//釋放內(nèi)存  調(diào)用析構(gòu)


    ////匿名對(duì)象寄存器緩存
    //mycalssx(); //匿名對(duì)象  構(gòu)造完了 不保存 馬上析構(gòu)
    //mycalssx*p = new mycalssx(); //保存在堆上 就不在析構(gòu)
    //mycalssx f1 = mycalssx(); //創(chuàng)建對(duì)象

    int a(5); //原理就是構(gòu)造函數(shù)  ====  int a=int(5); 


    cin.get();
}

類默認(rèn)生成的四個(gè)函數(shù)

//類默認(rèn)生成4個(gè)函數(shù): 拷貝構(gòu)造 構(gòu)造 析構(gòu) 賦值重載
//myclass520 my1; myclass520 my2(my1); //拷貝構(gòu)造
//myclass520 *p=new myclass520; //構(gòu)造
//delete p; //析構(gòu)
//my1=my2; //賦值重載
//delete刪除
//default存在
//C++會(huì)給每個(gè)類生成四個(gè)函數(shù) 寫(xiě)了新函數(shù)會(huì)覆蓋 default存在

class myclass520
{
public:
    //mycalss520(const myclass520&my) = delete;
    //myclass520() = delete;
    //void operator=(const myclass520&my)=default;
    //myclass520() =default;  //default 存在 聲明一下

    int x;
    int y;

    myclass520()
    {
        cout << "creat" << endl;
    }
    ~myclass520()
    {
        cout << "delete" << endl;
    }
    myclass520(const myclass520 &my)
    {
        x = my.x;
        y = my.y;
        cout << "拷貝構(gòu)造" << endl;
    }
    //myclass520 operator=(const myclass520 &my)
    void operator=(const myclass520 &my)
    {
        x = my.x;
        y = my.y;
        cout << "賦值重載" << endl;
    }


    void show()
    {
        cout << x << " " << y << endl;
    }

private:

};

class bobo
{
public:
    int x;
    int y;
    int z;
    //寫(xiě)了構(gòu)造函數(shù)  往往會(huì)覆蓋原生
    bobo() = default;
    bobo(int a,int b,int c):x(a),y(b),z(c)
    {
    
    }
    ~bobo()
    {

    }

private:

};



void mainr15()
{
    //myclass520 my1; //調(diào)用構(gòu)造函數(shù)
    //myclass520 my2(my1);//調(diào)用拷貝構(gòu)造
    //myclass520 my3;
    //my3 = my1; //調(diào)用賦值重載

    myclass520 my1;
    my1.x = 10;my1.y = 20;
    my1.show();
    myclass520 my2(my1);
    my2.show();


    cin.get();
}

模板參數(shù)展開(kāi)

#include<cstdarg>
template<class T>
void showit(T t)
{
    cout << t << endl;
}

template<class...Args>
void all(Args...args)
{
    int arr[] = { (showit(args),0)... };
}

template<class...Args>
void allit(Args...args)
{
    int arr[] = { (showit(args),0)... };
    //int arr[] 約束展開(kāi)  不能省略
}


void mainz16()
{
    all(1, 2, 3, 4, 5,6);
    allit(1, 'a', "ssss", 7.8);
    cin.get();
}

轉(zhuǎn)義字符


#include<string>

void main()
{
    string str1(R"(12345\n455)");
    string str2(R"-(12345\n455"""12345\n455)-"); //-處理對(duì)稱性錯(cuò)誤
    cout << str1 << endl;
    cout << str2 << endl;

    cin.get();
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市侵续,隨后出現(xiàn)的幾起案子倔丈,更是在濱河造成了極大的恐慌,老刑警劉巖状蜗,帶你破解...
    沈念sama閱讀 219,589評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件档冬,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡试读,警方通過(guò)查閱死者的電腦和手機(jī)竿奏,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,615評(píng)論 3 396
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人蜀铲,你說(shuō)我怎么就攤上這事边琉。” “怎么了记劝?”我有些...
    開(kāi)封第一講書(shū)人閱讀 165,933評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵变姨,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我厌丑,道長(zhǎng)定欧,這世上最難降的妖魔是什么? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,976評(píng)論 1 295
  • 正文 為了忘掉前任怒竿,我火速辦了婚禮砍鸠,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘耕驰。我一直安慰自己爷辱,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,999評(píng)論 6 393
  • 文/花漫 我一把揭開(kāi)白布朦肘。 她就那樣靜靜地躺著饭弓,像睡著了一般。 火紅的嫁衣襯著肌膚如雪媒抠。 梳的紋絲不亂的頭發(fā)上弟断,一...
    開(kāi)封第一講書(shū)人閱讀 51,775評(píng)論 1 307
  • 那天,我揣著相機(jī)與錄音趴生,去河邊找鬼阀趴。 笑死,一個(gè)胖子當(dāng)著我的面吹牛冲秽,可吹牛的內(nèi)容都是我干的舍咖。 我是一名探鬼主播,決...
    沈念sama閱讀 40,474評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼锉桑,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼排霉!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起民轴,我...
    開(kāi)封第一講書(shū)人閱讀 39,359評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤攻柠,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后后裸,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體瑰钮,經(jīng)...
    沈念sama閱讀 45,854評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,007評(píng)論 3 338
  • 正文 我和宋清朗相戀三年微驶,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了浪谴。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片开睡。...
    茶點(diǎn)故事閱讀 40,146評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖苟耻,靈堂內(nèi)的尸體忽然破棺而出篇恒,到底是詐尸還是另有隱情,我是刑警寧澤凶杖,帶...
    沈念sama閱讀 35,826評(píng)論 5 346
  • 正文 年R本政府宣布胁艰,位于F島的核電站,受9級(jí)特大地震影響智蝠,放射性物質(zhì)發(fā)生泄漏腾么。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,484評(píng)論 3 331
  • 文/蒙蒙 一杈湾、第九天 我趴在偏房一處隱蔽的房頂上張望解虱。 院中可真熱鬧,春花似錦毛秘、人聲如沸饭寺。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,029評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至限煞,卻和暖如春抹恳,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背署驻。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,153評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工奋献, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人旺上。 一個(gè)月前我還...
    沈念sama閱讀 48,420評(píng)論 3 373
  • 正文 我出身青樓瓶蚂,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親宣吱。 傳聞我的和親對(duì)象是個(gè)殘疾皇子窃这,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,107評(píng)論 2 356

推薦閱讀更多精彩內(nèi)容

  • 1.ios高性能編程 (1).內(nèi)層 最小的內(nèi)層平均值和峰值(2).耗電量 高效的算法和數(shù)據(jù)結(jié)構(gòu)(3).初始化時(shí)...
    歐辰_OSR閱讀 29,395評(píng)論 8 265
  • 307、setValue:forKey和setObject:forKey的區(qū)別是什么征候? 答:1, setObjec...
    AlanGe閱讀 1,551評(píng)論 0 1
  • 1.面向?qū)ο蟮某绦蛟O(shè)計(jì)思想是什么杭攻? 答:把數(shù)據(jù)結(jié)構(gòu)和對(duì)數(shù)據(jù)結(jié)構(gòu)進(jìn)行操作的方法封裝形成一個(gè)個(gè)的對(duì)象。 2.什么是類疤坝?...
    少帥yangjie閱讀 5,006評(píng)論 0 14
  • 減肥對(duì)一個(gè)人的改變能有多大跑揉? 無(wú)論你打開(kāi)一個(gè)社交網(wǎng)站/應(yīng)用锅睛,只要輸入“減肥”的關(guān)鍵字搜索,都能得到一個(gè)大寫(xiě)的驚嘆號(hào)...
    寺變閱讀 294評(píng)論 0 0
  • 董卿首次擔(dān)任制作人的轉(zhuǎn)型之作《朗讀者》成為綜藝節(jié)目中的一股清流乖订,豆瓣網(wǎng)上以9.5分高分得到了廣大網(wǎng)友的支持和認(rèn)可。...
    沐清小寨閱讀 764評(píng)論 0 0