令人困惑的C 語法

2021-04-12 21:00:09 字數 1899 閱讀 9463

#include

#include //for size_t

using namespace std;

//arr 13 run error in vs.net

/*template

struct myhash};

_stl_template_null struct myhash};

_stl_template_null struct myhash};

int main()*/

//arr 12

/*class alloc;

template

class mydeque};

template

class mystack;

template

bool operator == (const mystack& x, const mystack& y);

template

bool operator < (const mystack& x, const mystack& y);

template >

class mystack

private:

sequence e;};

template

bool operator == (const mystack& x, const mystack& y)

template

bool operator < (const mystack& x, const mystack& y)

int main()*/

//arr 11

/*class alloc;

inline size_t __deque_buf_size(size_t n, size_t sn)

template

struct __deque_iterator};

template

class mydeque;

int main()*/

//arr 10

/*class alloc;

template

class mydeque};

template >

class mystack

private:

mysequence c;};

int main()*/

//arr 08

/*class alloc;

template

class myvector};

int main();

myvectorx;

myvector::iterator ite = null;

x.insert(ite, ia, ia + 5);

return 0;}*/

//arr06

/*class alloc;

template

class myvector};

template

inline void swap(myvector& x, myvector& y)

int main()*/

//arr 05

/*template

struct testclass};

template

struct testclass};

template

struct testclass};

int main() */

//arr03

/*template

class testclass;

int testclass::_data = 1;

char testclass::_data = 97;

int main()

*/ 

令人困惑的strtotime

經常會有人被strtotime結合 1 month,1 month,next month的時候搞得很困惑,然後就會覺得這個函式有點不那麼靠譜,動不動就出問題.用的時候就會很慌 這不,剛剛就有人在微博上又問我 鳥哥,今天是2018 07 31 執行 date y m d strtotime 1 mon...

令人困惑的strtotime

經常會有人被strtotime結合 1 month,1 month,next month的時候搞得很困惑,然後就會覺得這個函式有點不那麼靠譜,動不動就出問題.用的時候就會很慌 這不,剛剛就有人在微博上又問我 今天是2018 07 31 執行 date y m d strtotime 1 month ...

令人困惑的webpack之entry

使用webpack快一年了,現在1.x版本都過氣了,但是感覺自己對它那複雜的配置還是很不熟悉,各種路徑,各種loader,各種plugin,又是單頁面又是多頁面.在vue cli出來的時候,都不敢用他的webpack模板,主要就是因為webpack的配置檔案看不懂,不敢自己根據需要做修改。現在沉下心...