91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

破解版可以讀取文件超過200行,并且第一行沒有LOGO。里面帶的例子是我測試的讀取xlsx文件中的中文,環(huán)境是VS2010,測試成功。

資源截圖

代碼片段和文件信息

#include?
#include?
#include?

using?namespace?std;
using?namespace?libxl;

//中文的內(nèi)容讀出來后要進(jìn)行編碼的轉(zhuǎn)換,這個為轉(zhuǎn)換函數(shù):wchar_t?to?char
char?*w2c(char?*pcstrconst?wchar_t?*pwstr?size_t?len)

{
int?nlength=wcslen(pwstr);
//獲取轉(zhuǎn)換后的長度
int?nbytes?=?WideCharToMultiByte(?0?0?pwstr?nlength?NULL0NULL?NULL?);?
if(nbytes>len)???nbytes=len;
//?通過以上得到的結(jié)果,轉(zhuǎn)換unicode?字符為ascii?字符
WideCharToMultiByte(?00?pwstr?nlength???pcstr?nbytes?NULL???NULL?);
return?pcstr?;
}

int?main(int?argc?char*?argv[])
{
Book*?book?=?xlCreatexmlBook();
if(book->load(L“1.xlsx“)){
Sheet?*?sheet?=?book->getSheet(0);
if(sheet){
CellType?celltype?=?sheet->cellType(11);
cout<<“the?type?is:“<
????????????const?wchar_t?*?t?=?sheet->readStr(11);
char?*pcstr?=?(char?*)malloc(sizeof(char)*(2?*?wcslen(t)+1));
memset(pcstr??0??2?*?wcslen(t)+1?);
w2c(pcstrt2?*?wcslen(t)+1)?;
cout<<“result:“< free(pcstr);
}
}
system(“pause“);
return?0;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????3395672??2012-12-14?15:40??libxl-3.1(破解版).rar

?????文件???????1093??2012-12-19?16:20??main.cpp

-----------?---------??----------?-----??----

??????????????3396765????????????????????2


評論

共有 條評論