- 博客(4)
- 收藏
- 关注
原创 按顺序打印线程
#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
301
原创 字符删除
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
原创 十六进制转字符串
#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
696
原创 字符替换
#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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人