随笔分类 -  日常开发笔记

摘要:# Simple Example ```C++ #include #include #include void print(std::string prefix, int number) { std::cout numbers; for (int i = 0; i #include #include 阅读全文
posted @ 2023-09-05 11:29 dilex 阅读(20) 评论(0) 推荐(0)
摘要:```C++ #include int main(const int argc, const char* argv[]) { std::string strSql1 = "select * from table \ where id = 1 \ and name='name'"; std::cout 阅读全文
posted @ 2023-06-30 14:27 dilex
摘要:什么是函数指针 函数指针:如果在程序中定义了一个函数,那么在编译时系统就会为这个函数代码分配一段存储空间,这段存储空间的首地址称为这个函数的地址。 函数指针变量定义形式 函数返回值类型 (*函数指针变量名) (函数参数列表); 如何用函数指针调用函数 int max(int x, int y); / 阅读全文
posted @ 2020-08-19 01:09 dilex 阅读(262) 评论(0) 推荐(0)
摘要:在vector中的emplace_back函数, 其效率比push_back高很多! /*例子中使用的Student类的声明*/ class Student { private: int age; public: Student(); explicit Student(int age); ~Stud 阅读全文
posted @ 2020-07-14 22:56 dilex 阅读(3833) 评论(0) 推荐(2)
摘要:实践代码: git clone https://github.com/dilexliu/learn_qt5.git Step1: Qt设计器绘制窗口 保存会得到一个文件: mainwindow.ui 另外还需要把mainwindow.ui 的代码保存出来,操作:在Qt设计器中的菜单栏【窗体】->【查 阅读全文
posted @ 2019-05-30 22:20 dilex 阅读(1417) 评论(0) 推荐(0)
摘要:编译前的工作 在编译libpng前,需要把zlib编译好,并加载到编译环境里。 CMake + VS2015 下编译zlib,及使用小例 下载与解压 libpng的官网是 http://www.libpng.org/pub/png/libpng.html ,但它的源码是存在 https://sour 阅读全文
posted @ 2019-04-21 15:31 dilex 阅读(2969) 评论(0) 推荐(1)
摘要:安装工具 Python 这个安装的时候没记录下来,网上查一下,大把, 就不补了。 ActivePerl https://www.cnblogs.com/dilex/p/10591579.html 下载 http://download.qt.io/archive/qt/ 链接:https://pan. 阅读全文
posted @ 2019-03-31 09:39 dilex 阅读(781) 评论(0) 推荐(0)
摘要:Qt5的编译 Windows下载编译Qt5 Gui CMakeLists.txt 源码 main.cpp 源码 阅读全文
posted @ 2019-03-31 09:29 dilex 阅读(980) 评论(3) 推荐(0)
摘要:下载 链接:https://pan.baidu.com/s/1gKu_WwVo-TeWXmrGAr9qjw 提取码:s1vm 用instsrv.exe安装srvany.exe 将instsrv.exe和srvany.exe拷贝到"C:\WINDOWS\system32"目录下(如果是64bit系统, 阅读全文
posted @ 2019-03-28 10:21 dilex 阅读(957) 评论(0) 推荐(0)
摘要:问题 一直都有一个问题,就是基于Windows下使用CMake构建VS工程时,CMake是如何查找到第三方库所在的路径的呢? 答案 今天重新想起这个问题,就拿构建Vtk的VS工程测试了一下, 才发现是通过系统的环境变量查找到第三方库所在的路径的,再通过库中的cmake配置文件,设置include的路 阅读全文
posted @ 2019-03-27 21:49 dilex 阅读(2360) 评论(0) 推荐(0)
摘要:链接: https://pan.baidu.com/s/1dkS_G8ZSBD8EnhYeEFZxhQ 密码: xu99(从官网下的, 但360会提示有毒, 哈哈哈)运行exe, 解压openCV运行下载得到的opencv-3.4.1-vc14_vc15.exe, 设置一下目标目录D:\Program Files 如图:运行完成后, 在上面设置的目标目录中, 会发现多了一个opencv文件夹:配置... 阅读全文
posted @ 2018-04-12 11:22 dilex 阅读(441) 评论(0) 推荐(0)
摘要:在Android Studio 里新一下Android项目, 这个不用说了.链接: https://pan.baidu.com/s/1qYcCBEW 密码: ymhh添加 cordovaapp-cordovalib.jar把 cordovaapp-cordovalib.jar 复制到项目的目录app\libs\下 并且添加到类库中添加www文件夹先在目录 app\src\main下添加一个名为as... 阅读全文
posted @ 2017-11-14 13:44 dilex 阅读(139) 评论(0) 推荐(0)
摘要:添加相关文件到工程 链接: https://pan.baidu.com/s/1o83Juo6 密码: inkg 下载附件, 把里的log4net.dll 和 log4net.config 复制到工程目录下 添加log4net.dll 引用->添加引用, 把log4net.dll添加到工程下 添加lo 阅读全文
posted @ 2017-10-14 23:31 dilex 阅读(1236) 评论(0) 推荐(1)