![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 75
no_politics
这个作者很懒,什么都没留下…
展开
-
C/C++ key concepts
C语言中函数和全局变量之间的关系C程序设计中,强调函数必须是全局的函数,即强调全局观;为了实现函数最大程度的重复使用,程序员不能使数据与函数强耦合,如果是强耦合就必须放在一个文件中,用static和extern修饰,也就是整个程序对数据的划分靠的是数据在文件中的分布以及static 和 extern 关键字的应用。这样的策略可以实现部分数据与函数的强耦合。这样也为C++的实现提供了依据,即将强原创 2017-10-20 12:16:25 · 267 阅读 · 0 评论 -
Learning STL: walking from micro to macro
In STL, the data container and algorithms are separated from each other for more inner cohesion without any considering and involving with each other. However, this separation leads a problem that is ...原创 2018-04-05 22:43:35 · 110 阅读 · 0 评论 -
The underlying mechanism of C++ polymorphism
The most hard working in using a computer language is understanding the underlying mechanism of the tricky syntax and semantics and facilities. For example, in C++ programming practice, you must know ...原创 2018-04-05 22:40:14 · 194 阅读 · 0 评论 -
Design pattern--the nature of Chinese language characters creating
Design pattern -- the nature Chinese language characters creating--rethinking about thecomprehensivemeaning of design patternAbstract: It is confirmed and verified that there is the design pa...原创 2018-01-09 13:10:43 · 290 阅读 · 0 评论 -
魔法币问题
#include #include #include #include using namespace std;void magic_money(int money){ unsigned int local, even_odd; if(money%2==1) { local = (money-1)/2; even_odd = 1; }原创 2017-12-02 10:55:41 · 239 阅读 · 0 评论 -
C++: A computer language but used to express relationship of concepts!
C++: A computer language but used to express relationship of concepts!Human has the capability of analyzing and abstracting. Abstracting is the process to produce the general concepts, like clas原创 2017-11-28 23:16:38 · 194 阅读 · 1 评论 -
Reusing Code in C++: inheriting and template
Reusing Code in C++: inheriting and templateThe worldview of Object-oriented means a lot, including taking an object-oriented perspective to observe things and solve problems. OOP means that creat原创 2017-11-28 23:22:02 · 201 阅读 · 0 评论 -
Summary: overloaded constructors and overloaded operators in C++ program
Abstract: It is confused that how should a C++ programmer overload constructors and operators when he begins to design a class correctly. And, the traditional rule that the overloaded copy constructor...原创 2019-05-18 22:44:06 · 170 阅读 · 0 评论 -
Building application Interleaved way
Building application Interleaved wayAs a programmer, who believes that what can be executed is the reality, develops application base on the Linux operating system, you must know that an applica原创 2017-10-20 12:38:27 · 198 阅读 · 0 评论 -
Initialization and assignment in C++
Whatever, the c++ compiler has supplied for a concrete object(an instance of some user-defined type), is going to be defaulted in terms of the nature of the type. Default constructor, default copy con原创 2017-10-20 12:25:56 · 236 阅读 · 0 评论 -
C/C++ key concepts (1)
C++ 中的类指针(引用)和类对象—一般到特殊,抽象到具体的联系由于继承机制的影响,C++ 子类可以重写父类的成员函数,包括虚函数和非虚函数。C++中的父类指针可以指向子类的对象,子类指针也可以指向父类对象。在具体的上下文中,指针类型和被指针指向的类型都会影响甚至决定函数的绑定。对被重写的虚函数而言,无论指针的类型是什么,其指向的对象类型决定了其要绑定的函数—和指针类型无关;但对于被重写的原创 2017-10-20 12:23:42 · 172 阅读 · 0 评论 -
The run-time service of operating system
The story of the interleaved action between the applications and OS kernel is a template of event-driving acting. To the OS, everything is a event. Naturally, the operating system is designed as a su...原创 2018-04-05 22:44:49 · 152 阅读 · 0 评论