- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 二位数组初始化
int a[3][9] = {0}; /* 00 01 02 03 04 05 0 1 2 3 4 5 10 11 12 13 14 15 6 7 8 9 10 11 20 21 22 23 24 25 12 13 14 15 16 17 */ for ( int i = 0; i < 27; i
2017-01-19 12:36:53 192
原创 C++读取UNICODE内容到剪贴板
if (OpenClipboard()) { HGLOBAL clipBuffer; EmptyClipboard(); wchar_t*buffer; clipBuffer = GlobalAlloc(GMEM_DDESHARE, 2 * lstrlen(str) + sizeof(wchar_t)); buffer = (wchar_t*)GlobalLock(c
2017-01-10 22:14:12 680
原创 向Edit添加内容
CString str("abd"); int nLen=m_Edit.GetWindowTextLength(); m_Edit.SetSel(nLen,-1); m_Edit.ReplaceSel(str+"\r\n");
2017-01-09 18:54:00 319
原创 必须为多态基类声明 virtual 析构函数
class Animal {public:Animal(){cout }virtual ~Animal() {cout }virtual void MakeSound() const = 0 {}};class Cat :public Animal {public:Cat() {cout }~Cat() {cout
2017-01-07 12:23:23 274
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人