# cxxcode **Repository Path**: dagunliyu/cxxcode ## Basic Information - **Project Name**: cxxcode - **Description**: 学习C++所写代码 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2020-04-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cxxcode 学习C++所写代码,主要包含有C++基础,常见数据结构与算法,linux下编译器Clang++和跨平台编译工具cmake使用,最新的内容包含了cuda并行程序设计。编译生成的文件为main.pdf。如果希望自己修改可以clone仓库然后使用`xelatex main.tex`编译。否则直接下载main.pdf则不需要下载整个仓库,毕竟仓库正在不停的变大。 ## 更新日志 - 2019-3-16:此日之后所有代码均不包含main函数。main函数将在源代码工程目录下。所有经过随机测试的代码将被标记为星星 - 2019-3-9:此日其所有的代码必须包含单元测试代码。使用测试巩固为ctest,单元测试使用boost单元测试。 ## 更新代码风格 代码风格主要由: - src/:main代码或者其他的代码所在目录 - include:函数头文件和实现代码 - CMake构建 ## 其他 [![Fork me on Gitee](https://gitee.com/bleedingfight/cxxcode/widgets/widget_3.svg?color=00cc70)](https://gitee.com/bleedingfight/cxxcode) ======= # 这个文件介绍了目录中相关文件和文件夹的用途 ## 目录结构如下 ``` ├── bibliography.bib:引用相关 ├── code │   └── test1.cpp:剑指offer代码 ├── error.tex:常见的c++代码错误 ├── main.pdf:输出文档 ├── main.tex:主文档tex文件 ├── note.pdf ├── note.tex ├── offer_code:剑指offer中代码 │   ├── arth1.cc │   └── arth2.cc ├── offer.tex:剑指offer中的试题 ├── Pictures:图像素材 │   ├── 1_1.png │   ├── 1_2.png │   ├── 1_3.png │   ├── band1.png │   ├── boat.png │   ├── combo.jpg │   ├── conv.jpg │   ├── data.jpg │   ├── esahubble.png │   ├── fig_PCA.png │   ├── ha-gray-conv-crp.jpg │   ├── head1.png │   ├── head2.png │   ├── Histogram_train2.png │   ├── matri6-01.png │   ├── matrix2-01.png │   ├── nine.jpg │   ├── nphoton.jpg │   ├── Screenshot.png │   ├── small_ex.png │   ├── Small-train2.png │   ├── Small-train3-matrix.png │   ├── Small-train3.png │   ├── Small-train6.png │   └── uno.jpg ├── QA.tex:c++编程中常见的问题 ├── question_code:C++编程遇到错误的代码 │   └── qa1.cc ├── README.md ├── specification.tex:我的C++编程规范 ├── structure.tex:整本书的风格框架文件 ├── StyleInd.ist ├── test2.cpp └── warn:遇到警告的代码 ├── cpp2.cxx └── warn1.cpp ``` ## 内容展示 本文主要关注与有C++基础的用户,C++基础部分只是展示了平常碰到较少又很重要的内容。文件内容包括 - 常见的C++问题 - Linux下如何编译C++工程 - 常见数据结构与算法C++实现 - 标准库的使用示例 - 添加CUDA编程部分 在算法部分添加了详细的图解说明。算法部分一直更新,源代码均可在code目录下找到。 - C++基础部分 基础部分目录与内容展示

* 数据结构部分 详细的图像解释说明

* 算法部分

* 标准库部分

* 编译工具

* CUDA编程

``` . ├── code:代码 │   ├── arith │   │   ├── 17 │   │   ├── 38 │   │   ├── arith │   │   │   ├── recursive │   │   │   │   ├── ex1 │   │   │   │   └── ex2 │   │   │   ├── sort │   │   │   ├── sp │   │   │   └── text_part │   │   ├── dp │   │   ├── recursive │   │   │   ├── ex1 │   │   │   └── ex2 │   │   ├── sort │   │   ├── sp │   │   └── text_part │   ├── boost │   │   ├── ex1 │   │   ├── ex2 │   │   └── timer │   │   ├── ex1 │   │   ├── ex2 │   │   └── ex3 │   ├── class │   ├── cmake │   │   ├── cmake_code │   │   │   └── ex1 │   │   ├── ex1 │   │   ├── ex2 │   │   ├── ex3 │   │   │   ├── COPYRIGHT │   │   │   │   └── src │   │   │   ├── doc │   │   │   └── src │   │   ├── ex4 │   │   │   ├── lib │   │   │   └── src │   │   ├── ex5 │   │   │   ├── lib │   │   │   └── src │   │   ├── ex6 │   │   ├── mult_cc │   │   │   └── ex1 │   │   └── thread │   │   ├── ex1 │   │   ├── ex2 │   │   ├── ex3 │   │   ├── ex4 │   │   │   └── main │   │   ├── ex5 │   │   │   └── pipe │   │   ├── ex6 │   │   ├── ex8 │   │   └── ex9 │   ├── CodeSamples │   │   ├── chapter01 │   │   ├── chapter02 │   │   ├── chapter03 │   │   ├── chapter04 │   │   ├── chapter05 │   │   ├── chapter06 │   │   ├── chapter07 │   │   ├── chapter08 │   │   ├── chapter09 │   │   ├── chapter10 │   │   ├── common │   │   └── lectures_code │   │   └── iso │   │   ├── bin │   │   │   └── libcommon_cuda.so.dSYM │   │   │   └── Contents │   │   └── src │   ├── cuda │   │   ├── ex1 │   │   ├── ex2 │   │   ├── ex3 │   │   ├── ex5 │   │   ├── ex6 │   │   ├── ex7 │   │   ├── ex8 │   │   ├── ex9 │   │   └── pingan │   ├── DS │   │   └── tree │   ├── eigen │   │   └── ex2 │   ├── function │   ├── leetcode │   │   ├── ex1 │   │   ├── ex2 │   │   └── ex3 │   ├── namespace │   │   ├── ns1 │   │   ├── ns2 │   │   ├── ns3 │   │   └── ns4 │   ├── newcode │   │   └── ex1 │   ├── new_stand │   │   ├── ex1 │   │   ├── ex2 │   │   ├── ex3 │   │   ├── ex4 │   │   └── ex5 │   ├── offer │   │   ├── 27 │   │   ├── dfs │   │   ├── ex1 │   │   ├── ex10 │   │   ├── ex11 │   │   ├── ex13 │   │   ├── ex14 │   │   ├── ex15 │   │   ├── ex16 │   │   ├── ex17 │   │   ├── ex18 │   │   │   └── cmake-build-debug │   │   │   └── CMakeFiles │   │   │   ├── 3.12.0 │   │   │   │   ├── CompilerIdC │   │   │   │   └── CompilerIdCXX │   │   │   └── ex18.dir │   │   ├── ex19 │   │   ├── ex20 │   │   ├── ex21 │   │   ├── ex22 │   │   ├── ex23 │   │   ├── ex24 │   │   ├── ex25 │   │   ├── ex26 │   │   ├── ex28 │   │   ├── ex3 │   │   ├── ex4 │   │   ├── ex5 │   │   ├── ex6 │   │   ├── ex7 │   │   ├── ex8 │   │   ├── ex9 │   │   ├── exam1 │   │   ├── meituan │   │   └── untitled │   ├── opencv │   │   └── ex1 │   ├── QA │   ├── question_code │   ├── STL │   ├── stream │   ├── string │   ├── thread │   ├── untitled │   └── valgrind ├── content:文档主要内容 ├── g3doc/demo:展示内容 ├── dot:画图素材,方便编辑 ├── figures:图像素材 ├── offer_code:找工作代码(即将删除) ├── Pictures:图像,主要是文档自带图像素材。 ├── thread:线程部分 │   ├── ex1 │   └── ex2 ├── warn:警告 ├── xls │   └── xmls └── xmls:draw.io绘图源文件 ```