上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: C++-shared_ptr #include <iostream> #include <memory> #include <vector> class A { public: A(){ std::cout<<"A cc."<<std::endl; }; ~A(){ std::cout<<"A dd 阅读全文
posted @ 2023-05-10 06:04 Theseus‘Ship 阅读(21) 评论(0) 推荐(0)
摘要: Tool-CMake-find_library https://cmake.org/cmake/help/latest/command/find_library.html?highlight=find_library If nothing is found, the result will be - 阅读全文
posted @ 2023-05-09 06:09 Theseus‘Ship 阅读(34) 评论(0) 推荐(0)
摘要: Tool-CMake-add_custom_command-copy https://cmake.org/cmake/help/latest/command/add_custom_command.html?highlight=add_custom_command add_custom_command 阅读全文
posted @ 2023-05-09 05:58 Theseus‘Ship 阅读(22) 评论(0) 推荐(0)
摘要: C++-typeid-操作符 基类指针 typeid可以进行类型判断 对于基类指针时: typeid(*pointerBaseClass) == typeid(DerivedClassName) typeid是操作符,不是函数! 在c++中,typeid用于返回指针或引用所指对象的实际类型。 运行时 阅读全文
posted @ 2023-05-09 05:47 Theseus‘Ship 阅读(15) 评论(0) 推荐(0)
摘要: Tool-CMake-make -j[cpu_num] https://blog.csdn.net/KingOfMyHeart/article/details/105438151 执行make指令效率较低。 使用make -j后面跟一个数字,让make最多允许n个编译命令同时执行,可以更有效的利用C 阅读全文
posted @ 2023-05-09 05:39 Theseus‘Ship 阅读(92) 评论(0) 推荐(0)
摘要: Book-Linux UNIX 系统编程手册-下册-41章 共享库基础 共享库是一种将库函数打包成一个单元使之能够在运行时被多个进程共享的技术。这种技术能 够节省磁盘空间和RAM。 41.1目标库 构建程序的一种方式是简单地将每一个源文件编译成目标文件,然后将这些目标文件链接在一起组成一个可执行程序 阅读全文
posted @ 2023-05-07 12:05 Theseus‘Ship 阅读(64) 评论(0) 推荐(0)
摘要: # C++ Primer Plus (第六版) 中文版(部分章节) ### Bjarne Stroustrup's homepage! Bjarne Stroustrup's homepage! https://www.stroustrup.com/ ### 编译和链接 UNIX编译和链接 cc c 阅读全文
posted @ 2023-05-04 07:09 Theseus‘Ship 阅读(106) 评论(0) 推荐(0)
摘要: Linux/UNIX 系统编程手册-下册(部分章节) 34.1 概述 (进程组、会话和作业控制) 进程组由一个或多个共享同一进程组标识符(PGID)的进程组成。 进程组ID是一个数字,其类型与进程ID一样(pid_t)。 一个进程组拥有一个进程组首进程,该进程是创建该组的进程,其进程ID为该进程组的 阅读全文
posted @ 2023-05-04 07:07 Theseus‘Ship 阅读(121) 评论(0) 推荐(0)
摘要: Book-Linux/UNIX 系统编程手册-上册(部分章节) Linux专有的编程特性 Linux的广受欢迎只是原因之一,而有时出于性能方面的考虑,或是需要访问标准UNIX编程接口所不支持功能时,使用非标准扩展(正因如此,所有UNIX实现都提供有非标准扩展)就显得至为重要综上所述,在构思本书时,作 阅读全文
posted @ 2023-05-02 06:05 Theseus‘Ship 阅读(206) 评论(0) 推荐(0)
摘要: C++-std::this_thread::get_id()-获取线程id std::this_thread::get_id() 头文件:<thread> 函数:std::this_thread::get_id() 用例:std::thread::id thread_id = std::this_t 阅读全文
posted @ 2023-04-29 18:42 Theseus‘Ship 阅读(421) 评论(0) 推荐(0)
摘要: C++-#pargma once https://baike.baidu.com/item/%23pragma%20once/9468158?fr=aladdin #pragma once是一个比较常用的C/C++预处理指令。 只在头文件的最开始加入这条预处理指令,就能够保证头文件只被编译一次。 基 阅读全文
posted @ 2023-04-29 18:32 Theseus‘Ship 阅读(37) 评论(0) 推荐(0)
摘要: C++-改变终端(cout/printf)输出不同颜色的字体-Linux https://blog.csdn.net/qq_41972382/article/details/90311102 不同颜色的输出主要依据格式ESC[*m,ESC的八进制为\033,*可以是多个属性的组合,用,隔开。 pri 阅读全文
posted @ 2023-04-29 18:18 Theseus‘Ship 阅读(1421) 评论(0) 推荐(1)
摘要: C++-标准异常<exception> std::exception 定义于头文件 <exception> class exception; https://www.apiref.com/cpp-zh/cpp/error/exception.html 标准库头文件 <stdexcept> https 阅读全文
posted @ 2023-04-29 18:03 Theseus‘Ship 阅读(205) 评论(0) 推荐(0)
摘要: Tool-CMake-list https://www.visgraf.impa.br/seminar/slides/rodlima_cmake_presentation.pdf Useful to manage long list of elements Elements can be manip 阅读全文
posted @ 2023-04-29 14:18 Theseus‘Ship 阅读(21) 评论(0) 推荐(0)
摘要: Tool-CMake-Own Finder(-I -L -l)-compiling What is a finder When compiling a piece of software which links to third­party libraries, we need to know: W 阅读全文
posted @ 2023-04-29 13:52 Theseus‘Ship 阅读(12) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
Live2D