- 博客(7)
- 收藏
- 关注
转载 wcstombs_s, _wcstombs_s_l
#include <stdio.h> #include <stdlib.h> #include <assert.h> #define BUFFER_SIZE 100 int main( void ) { size_t i; char *pMBBuffer = (char *)malloc( BUFFE...
2015-12-31 16:51:00
374
转载 MFC TIME
使用COleDateTime类1) 获取当前时间。 CTime time; time = CTime::GetCurrentTime();2) 获取时间元素。 int year = time.GetYear() ; int month = time.GetMonth(); int day = time.GetDay...
2015-12-22 09:37:00
209
转载 一个面向对象的双向链表
//An example of a simple double linked list using OOP techniques #include <iostream> using namespace std; struct Node { double value; Node *N,*P; Node(double y) { ...
2015-12-02 16:13:00
218
转载 一个友元函数的例子
//friend function example source code //role of friend function. #include <iostream> using namespace std; class x { protected: int x1; public: x(int a1):x1(a1){} }; c...
2015-12-02 16:04:00
250
转载 错误: 内存泄漏,当您使用 GetDC 方法和 ReleaseDC 方法的 CWnd 类版本
症状 调用CWnd::GetDC函数跟CWnd::ReleaseDC函数的代码运行时,会出现 4 个字节的内存泄漏。 原因 导致此错误的原因是当前未知。 解决方案 若要避免此问题,请不要使用GetDC方法和ReleaseDC方法的CWnd类版本。使用GetDC函数和ReleaseDC函数。 状态 Microsoft 已经确认这是在本文开头部分列出的 Microsoft ...
2015-11-20 17:14:00
362
转载 ASCII Table and Description
ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as 'a' or '@' or a...
2015-11-19 13:48:00
81
转载 CString To Int
unsigned short TestCenter::CStringToHex(CString Text) { unsigned short retValue = 0; for (int i =0; i<Text.GetLength (); i++) { char ch = Text.GetAt (i); ...
2015-11-19 13:41:00
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人