ankerleng / cpp-0-1-resource Goto Github PK
View Code? Open in Web Editor NEWC++ 匠心之作 从0到1入门资料
C++ 匠心之作 从0到1入门资料
for (int i = ret; i < abs->m_Size; i++) {
abs->personArray[i] = abs->personArray[i + 1];
}
删最后一个越界了,emmm... 有鸡蛋里面挑骨头的意思
如标题
在添加联系人的时候,如果在输入性别的时候输入的是一个较长的字符串,则会不停输出“输入有误,请重新输入”
该章节中运行,发现第一个 delete worker就会报错;xcode 中也会直接提示错误问题:
解决方法是提供虚析构:
class Worker {
public:
virtual ~Employee() {};
}
class Employee: public Worker {
public:
virtual ~Employee() {};
}
这样在释放worker 释放的时候,不仅能找到虚表Worker 中的数据指针,同时把Employee 其他数据指针也能正确释放。
我已经把每篇教程的目录更新好了,需要PR吗?
The pictures in articles can't be load properly.Just its link can be seen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.