
个人记录
文章平均质量分 50
pys_xt_hb
这个作者很懒,什么都没留下…
展开
-
字符删除
bool StrDel(wchar_t* pStrIn,wchar_t* pStrDel){ wchar_t *pStrDelBak = (wchar_t*)malloc(65536); wchar_t *pStrInRec = pStrIn; wchar_t *pStrDelRec = pStrDel; while(*pStrDelRec != L'\原创 2014-03-11 09:02:16 · 394 阅读 · 0 评论 -
十六进制转字符串
#include "stdafx.h"wchar_t* HexToStr(wchar_t* pHexIn,int MaxOut){ int pHexInLen = wcslen(pHexIn); if(pHexInLen/8 return 0; wchar_t* pStrOut = (wchar_t*)malloc(MaxOut*sizeof原创 2014-03-11 08:13:52 · 699 阅读 · 0 评论 -
字符替换
#include "stdafx.h"#include "testdata.h"wchar_t* mystrcat(const wchar_t *str1,const wchar_t *str2,const wchar_t *str3)//str1是原来的字符串,str2是str1中的某段需要替换字符串,str3是替换str2的字符串{ int strlen1=0,str原创 2014-03-10 08:10:43 · 487 阅读 · 0 评论 -
按顺序打印线程
#include #include const DWORD THREAD_NUM = 50;//启动线程数CRITICAL_SECTION g_cs;HANDLE g_hThreadEvent;int ThreadNum = 1;DWORD i = 0;DWORD WINAPI ThreadFun(void *pPM) { int Rec = *(in原创 2014-03-21 12:24:18 · 309 阅读 · 0 评论