資源簡介
xlsxio的讀寫簡單c++封裝,用于讀寫策劃配置表等
首先要配置cygwin環境
然后安裝一下gcc g++ vim gdb make cmake minizip libzip2等,根據需要
然后從cygwin里進入解壓出來的libexpat文件夾,用 cmake . && make && make install
這里為了偷懶直接make install了,依賴庫自動拷貝到了你的/usr/local/bin/里,注意給策劃用的時候把需要的dll拷貝過去
然后從cygwin里進入解壓出來的xlsxio-master文件夾 cmake. && make && make install
然后就可以進入解壓出來的uniqs_cfg_generator里 sh b.sh進行編譯了
代碼說明:
c風格簡單封裝,為避免命名沖突在前面加了uniqs_開頭
返回的結構體比較復雜,嵌套比較多,要是想簡單可以自己寫個類然后放進去即可
注意,這一坨dll都是從 D:\cygwin64\bin 目錄以及 D:\cygwin64\usr\local\bin目錄里拷貝過來的(前提是記得一定要make install,可以省去你一堆包含頭文件的路徑)
cygexpat-1.dll
cyggcc_s-seh-1.dll
cygstdc++-6.dll
cygwin1.dll
cygxlsxio_read.dll
cygxlsxio_write.dll
代碼片段和文件信息
??const?char?features[]?=?{“\n“
“C_FEATURE:“
#if?(__GNUC__?*?100?+?__GNUC_MINOR__)?>=?304
“1“
#else
“0“
#endif
“c_function_prototypes\n“
“C_FEATURE:“
#if?(__GNUC__?*?100?+?__GNUC_MINOR__)?>=?304?&&?defined(__STDC_VERSION__)?&&?__STDC_VERSION__?>=?199901L
“1“
#else
“0“
#endif
“c_restrict\n“
“C_FEATURE:“
#if?(__GNUC__?*?100?+?__GNUC_MINOR__)?>=?406?&&?defined(__STDC_VERSION__)?&&?__STDC_VERSION__?>=?201000L
“1“
#else
“0“
#endif
“c_static_assert\n“
“C_FEATURE:“
#if?(__GNUC__?*?100?+?__GNUC_MINOR__)?>=?304?&&?defined(__STDC_VERSION__)?&&?__STDC_VERSION__?>=?199901L
“1“
#else
“0“
#endif
“c_variadic_macros\n“
};
int?main(int?argc?char**?argv)?{?(void)argv;?return?features[argc];?}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-04-13?14:44??libexpat\
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\
?????文件?????????397??2019-04-13?14:44??libexpat\.gitignore
?????文件?????????303??2019-04-13?14:44??libexpat\.git\config
?????文件??????????73??2019-04-13?14:44??libexpat\.git\desc
?????文件??????????23??2019-04-13?14:44??libexpat\.git\HEAD
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\hooks\
?????文件?????????478??2019-04-13?14:44??libexpat\.git\hooks\applypatch-msg.sample
?????文件?????????896??2019-04-13?14:44??libexpat\.git\hooks\commit-msg.sample
?????文件????????3327??2019-04-13?14:44??libexpat\.git\hooks\fsmonitor-watchman.sample
?????文件?????????189??2019-04-13?14:44??libexpat\.git\hooks\post-update.sample
?????文件?????????424??2019-04-13?14:44??libexpat\.git\hooks\pre-applypatch.sample
?????文件????????1642??2019-04-13?14:44??libexpat\.git\hooks\pre-commit.sample
?????文件????????1348??2019-04-13?14:44??libexpat\.git\hooks\pre-push.sample
?????文件????????4898??2019-04-13?14:44??libexpat\.git\hooks\pre-reba
?????文件?????????544??2019-04-13?14:44??libexpat\.git\hooks\pre-receive.sample
?????文件????????1492??2019-04-13?14:44??libexpat\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2019-04-13?14:44??libexpat\.git\hooks\update.sample
?????文件???????13363??2019-04-13?14:44??libexpat\.git\index
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\info\
?????文件?????????240??2019-04-13?14:44??libexpat\.git\info\exclude
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\logs\
?????文件?????????194??2019-04-13?14:44??libexpat\.git\logs\HEAD
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\logs\refs\
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\logs\refs\heads\
?????文件?????????194??2019-04-13?14:44??libexpat\.git\logs\refs\heads\master
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\logs\refs\remotes\
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\logs\refs\remotes\origin\
?????文件?????????194??2019-04-13?14:44??libexpat\.git\logs\refs\remotes\origin\HEAD
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\ob
?????目錄???????????0??2019-04-13?14:44??libexpat\.git\ob
............此處省略542個文件信息
- 上一篇:DES加解密 MFC
- 下一篇:C/C++程序員面試寶典
評論
共有 條評論