同步操作将从 Yj/CPlusPlusThings 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Thanks for all the support about << Stories About C ++ >>, right now you could open this link(https://light-city.club/sc/) to read this article. Any star, retweet or pr will be weclomed.
This repository meets the need of people who wants to really know about C++, and may help you in the interview. Besides, it also provides other details,such as in-depth source code analysis and multi-threaded concurrency. It is a comprehensive C ++ repository from entry to advanced improvement
Basic Grammar About C ++
Recursive、Structor、Enumerate、Static Variable
Function
Thorough About Function
Inheritance and Polymorphism
Vitrual Function、Abstruct
Operator overloading
Template And STL
Exception
File And Stream
├── Square brackets overload .cpp ├── Clock++operator overloading.cpp ├── Mandatory conversion of operator overloading.cpp └── Clock with overloaded parenthesis.cpp
├── Dictionary insertion and search.cpp
├── Inheritance And Package.cpp
├── Read And Write files.cpp ├── Operator Overloading About Input and Output.cpp ├── Input And Output Overloading.cpp ├── Input Format.cpp
C++2.0 is an Abbreviation, meaning「modern C++」,including C++11/14/17/20.
Spaces in Template Expressions
vector<list<int> > //ok in each C++ version
vector<list<int>> // before c++ 11 error error: ‘>>’ should be ‘> >’ within a nested template argument list,version beyond c++ 11 could compile successfully
for(decl:col) {
statement
}
If you define a ctor by yourself, compiler won't compile the default ctor. If you add =default, you could recatch and use default ctor.
Alias(化名)Template(template typedef)
Container-Struct And Classify
array
(C++2.0 Newly Introduced),vector
,deque
,list
,forward_list
(C++2.0 Newly Introduced)set/multiset
,map/multimap
hash_xxx
to unordered_xxx
) include:unordered_map/unordered_multimap,unordered_set/unordered_multiset
Learning Material:https://www.bilibili.com/video/av51863195?from=search&seid=3610634846288253061
To Be Continued ...
STL Source Code Analysis:gcc 4.9.1
Learning materials: https://chenxiaowei.gitbook.io/cpp_concurrency_in_action/
From:
https://www.youtube.com/watch?v=eZ8yKZo-PGw&list=PLk6CEY9XxSIAeK-EAh3hB4fgNvYkYmghp&index=4
Modified the code, Click here for the code
Input:
map<int, int> mp{
{1, 1},
{2, 4},
{3, 9}};
cout << mp << endl;
Output:
{ 1 => 1, 2 => 4, 3 => 9 }
Running Circumstance
Ubuntu 18.04
IDE
CLion gcc/g++
贡献人 | 地址 |
---|---|
光城 | https://github.com/Light-City |
ChungZH | https://github.com/ChungZH |
xliu79 | https://github.com/xliu79 |
个人公众号:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。