# CPLUS **Repository Path**: haloxxg/cplus ## Basic Information - **Project Name**: CPLUS - **Description**: c++ learn - **Primary Language**: C++ - **License**: CC0-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-29 - **Last Updated**: 2022-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## C++ Primer 5 Answers(C++11/14) $@:所有目标文件 $^:目标依赖的所有文件 $<:第一个依赖文件 $?:所有更新过的依赖文件 $%:当规则的目标是一个静态库文件时,$%代表静态库的一个成员名 $+:类似$^,但是保留了依赖文件中重复出现的文件 $*:在模式匹配和静态模式规则中,代表目标模式中%的部分。比如hello.c,当匹配模式为%.c时,$*表示hello $(@D):表示目标文件的目录部分 $(@F):表示目标文件的文件名部分 $(*D):在模式匹配中,表示目标模式中%的目录部分 $(*F):在模式匹配中,表示目标模式中%的文件名部分 -: :告诉make在编译时忽略所有的错误 @: :告诉make在执行命令前不要显示命令 [![GitHub issues](https://img.shields.io/github/issues/Mooophy/Cpp-Primer.svg)](https://github.com/Mooophy/Cpp-Primer/issues) [![GitHub license](https://img.shields.io/badge/license-CC0-blue.svg)](https://raw.githubusercontent.com/Mooophy/Cpp-Primer/master/LICENSE) [![](https://img.shields.io/badge/%E4%B8%AD%E6%96%87-%E8%AE%A8%E8%AE%BA%E5%8C%BA-yellowgreen.svg)](https://github.com/ReadingLab/Discussion-for-Cpp) [![](https://img.shields.io/badge/douban-%E5%B0%8F%E7%BB%84-green.svg)](http://www.douban.com/group/532124/) ### Compilers recommended * Windows: Visual Studio 2015+ * Linux: g++ 5.0+ ``` g++ -std=c++14 some_ex.cpp -o some_ex ``` * Mac: clang++ 3.7+ ``` clang++ -std=c++1y some_ex.cpp -o some_ex ``` ### Contents - [Chapter 1. Getting Started](ch01/README.md) - Part I: The Basics - [Chapter 2. Variables and Basic Types](ch02/README.md) - [Chapter 3. Strings, Vectors, and Arrays](ch03/README.md) - [Chapter 4. Expressions](ch04/README.md) - [Chapter 5. Statements](ch05/README.md) - [Chapter 6. Functions](ch06/README.md) - [Chapter 7. Classes](ch07/README.md) - Part II: The C++ Library - [Chapter 8. The IO Library](ch08/README.md) - [Chapter 9. Sequential Containers](ch09/README.md) - [Chapter 10. Generic Algorithms](ch10/README.md) - [Chapter 11. Associative Containers](ch11/README.md) - [Chapter 12. Dynamic Memory](ch12/README.md) - Part III: Tools for Class Authors - [Chapter 13. Copy Control](ch13/README.md) - [Chapter 14. Overloaded Operations and Conversions](ch14/README.md) - [Chapter 15. Object-Oriented Programming](ch15/README.md) - [Chapter 16. Templates and Generic Programming](ch16) - Part IV: Advanced Topics - [Chapter 17. Specialized Library Facilities](ch17) - [Chapter 18. Tools for Large Programs](ch18) - [Chapter 19. Specialized Tools and Techniques](ch19)