随笔分类 - c++
摘要:title: "openGL实现图形学扫描线种子填充算法" date: 2018 06 11T19:41:30+08:00 tags: ["图形学"] categories: ["C++"] 先上效果图 白色的起始种子点 代码 c++ include include include include
阅读全文
摘要:cin在读取大量数据时会比C里的scanf慢很多,但这并不是cin"无能",而是C++为了兼容C,对cin做了scanf的同步,只要关闭这个同步,cin就会有不弱于scanf的速度.
阅读全文
摘要:C++中类的成员的权限:private:只能由该类的成员函数,友元函数访问,不能被该类的对象访问。protected:除了private外还能被子类的函数访问,同样不能被该类的对象访问。public:除了protected外,还能被该类的对象访问。 privateprotectedpublic类的函...
阅读全文
