資源簡介
C++實現中英文與UNICODE十六進制字符串互轉
實現
"中文English" --> "4e2d65870045006e0067006c006900730068"
和
"4e2d65870045006e0067006c006900730068" --> "中文English"
這么一個轉換,上述的都是字符串。
附件是MFC編寫的轉換測試程序,及其源碼。
源碼在PC和WINCE下都測試通過
代碼片段和文件信息
#include?“StdAfx.h“
#include?“IntArray.h“
CIntArray::CIntArray(void)
{
intArry?=?NULL;
size?=?0;
}
CIntArray::~CIntArray(void)
{
if(intArry?!=?NULL){
free(intArry);
intArry?=?NULL;
}
}
//********************************************************************
//?Function : GetSize
//?Description : get?int?array?size
//?Input : NONE
//?Output : NONE
//?return : int?array?size
//********************************************************************
int?CIntArray::GetSize()
{
return?this->size;
}
//********************************************************************
//?Function : GetAt
//?Description : get?data?in?array
//?Input : index?:?index?must?>?0?and?//?Output : NONE
//?return : the?data?in?array?which?index?is?the?same?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????53248??2012-04-20?12:19??Test\release\Test.exe
?????文件???????1071??2011-12-22?15:44??Test\Test\IntArray.cpp
?????文件????????294??2011-12-22?15:45??Test\Test\IntArray.h
?????文件???????2709??2011-11-24?17:02??Test\Test\ReadMe.txt
?????文件??????21630??2005-09-23?09:25??Test\Test\res\Test.ico
?????文件????????360??2011-11-24?17:02??Test\Test\res\Test.rc2
?????文件????????952??2012-01-13?14:41??Test\Test\resource.h
?????文件????????135??2011-11-24?17:02??Test\Test\stdafx.cpp
?????文件???????2489??2011-11-24?17:02??Test\Test\stdafx.h
?????文件??????58800??2012-04-20?12:18??Test\Test\Test.aps
?????文件???????1623??2011-11-24?17:02??Test\Test\Test.cpp
?????文件????????429??2011-11-24?17:02??Test\Test\Test.h
?????文件???????5457??2012-04-20?12:18??Test\Test\Test.rc
?????文件???????5583??2012-04-20?12:17??Test\Test\Test.vcproj
?????文件???????1413??2012-04-20?12:19??Test\Test\Test.vcproj.BRANTYOU.brantyou.user
?????文件???????1427??2011-12-01?15:12??Test\Test\Test.vcproj.PC-20110516DYHH.brantyou.user
?????文件???????5466??2012-04-20?12:17??Test\Test\TestDlg.cpp
?????文件????????872??2012-04-20?12:14??Test\Test\TestDlg.h
?????文件???????4446??2012-02-29?15:15??Test\Test\YCodec.cpp
?????文件????????826??2012-02-29?15:15??Test\Test\YCodec.h
?????文件??????39481??2012-01-16?15:43??Test\Test\YString.cpp
?????文件???????4493??2012-01-16?15:31??Test\Test\YString.h
?????文件????????877??2011-11-24?17:02??Test\Test.sln
????..A..H.?????24064??2012-04-20?12:19??Test\Test.suo
?????目錄??????????0??2012-04-20?12:13??Test\Test\res
?????目錄??????????0??2012-04-20?12:19??Test\release
?????目錄??????????0??2012-04-20?12:19??Test\Test
?????目錄??????????0??2012-04-20?12:19??Test
-----------?---------??----------?-----??----
???????????????238145????????????????????28
............此處省略1個文件信息
- 上一篇:C++版五子棋程序(含源代碼)
- 下一篇:C語言點陣放大英文字母
評論
共有 條評論