摘要: 32位编译器:char short int long float double 指针 1 2 4 4 4 8 4 64位编译器:char short int long float double 指针 1 2 4 8 4 8 8 所以辨别编译器是几位的可以通过sizeof(long)来判断 阅读全文
posted @ 2020-03-09 14:51 //Mendax 阅读(297) 评论(0) 推荐(0) 编辑
摘要: C++ 中new 有三种用法,分别是:plain new, nothrow new, placement new。 plain new 1 void* operator new(std::size_t) throw(std::bad_alloc); 2 void operator delete( v 阅读全文
posted @ 2020-03-09 10:06 //Mendax 阅读(1991) 评论(0) 推荐(0) 编辑