c++
bainaqianhong
这个作者很懒,什么都没留下…
展开
-
declaration in header
header.h#pragma oncenamespace std{ template<typename T> class shared_ptr;}class TestClass {};typedef class std::shared_ptr<TestClass> TestClassPtr;void FuncParameterRef(Test...原创 2018-11-29 11:03:46 · 242 阅读 · 0 评论 -
Compile Errors
错误代码:struct MyInt{ MyInt() :mData(0) {} MyInt(int data) : mData(data) {} operator int() { return mData; } int mData;}; int main(){ bool bFlag = false; int aa = bFlag ? ...原创 2018-10-27 17:23:12 · 286 阅读 · 0 评论 -
DataContaine Clear
std::vector::clearClear contentRemoves all elements from the vector (which are destroyed), leaving the container with a size of 0.A reallocation is not guaranteed to happen, and the vector capacity...原创 2018-10-27 15:55:38 · 125 阅读 · 0 评论 -
KeyBoardEvent
reference: js中获取键盘事件 - https://www.cnblogs.com/jiangxiaobo/p/5953863.html<STYLE TYPE="text/css"> TD {text-align:center} </STYLE> <SCRIPT LANGUAGE="JavaScript"> function init() {...原创 2018-10-29 15:12:48 · 830 阅读 · 0 评论