「英语」C++继承与多态

This post will introduce inheritance and polymorphism in C++.Inheritance General IdeaInheritance allows us to create new classes from already defined classesThis creates a Parent->Child relationshi

Read More >

「英语」C++ Makefile

Makefiles are special format files that together with the make utility will help you to automagically build and manage your projects. (From davetang.org)

Read More >

浅谈bfs广度优先搜索在数字漫水填充flood-fill算法中的应用

BFS,其英文全称是Breadth First Search。 BFS并不使用经验法则算法。从算法的观点,所有因为展开节点而得到的子节点都会被加进一个先进先出的队列中。一般的实验里,其邻居节点尚未被检验过的节点会被放置在一个被称为 open 的容器中(例如队列或是链表),而被检验过的节点则被放置在被称为 closed 的容器中。(open-closed表)讨论方向在一个二维数组中,任意设置一个点为

Read More >