摘要:export CC=/usr/local/bin/gcc export CXX=/usr/local/bin/g++ export LD_LIBRARY_PATH=/usr/local/gcc-4.7.2/lib:$LD_LIBRARY_PATH cmake /path/to/your/projec
阅读全文
摘要:http://www.partow.net/programming/exprtk/ 数学表达式
阅读全文
摘要:http://www.partow.net/programming/exprtk/
阅读全文
摘要:wstring size和length 返回的是字符数string size和length返回的是字节数 utf8的 wchar 在linux是4字节的,而不是windows的 unsigned short 两字节
阅读全文
摘要:sizeof wchar_t. Unlike Windows UTF-16 2-byte wide chars, wchar_t on Linux and OS X is 4 bytes UTF-32 (gcc/g++ and XCode). ucs2是unicode的子集,编码上。
阅读全文
摘要:假设我们需要用到两个静态库:libtest1.a和libtest2.a,其中libtest2.a中又使用了libtest1.a中的接口。 那么我们可以这样使用:(原来三种使用方式中的1、2其实是一种,后面只列出其中之一) 1. gcc –o test main.c libtest2.a libtes
阅读全文
摘要:命令行: if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Debug") endif()
阅读全文
摘要:https://blog.csdn.net/luoleicn/article/details/5968038 GDB中print方法并不能直接打印STL容器中保存的变量,其实只要http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.tx
阅读全文
摘要:https://tessil.github.io/2017/06/22/hat-trie.html https://github.com/Tessil/hat-trie
阅读全文