摘要: 新建一个win32控制台应用程序,选择空项目。 #include using namespace std;class point{public: int x; int y; void output() { coutusing namespace std;cla... 阅读全文
posted @ 2014-09-29 15:09 xue泥娃娃 阅读(235) 评论(0) 推荐(0) 编辑
摘要: C++与C相比有许多优点,主要体现在封装性(Encapsulation)、继承性(Inheritance)和多态性(Polymorphism)。封装性是把数据与操作数据的函数组织在一起,不仅使程序结构更加紧凑,并且提高了类内部数据的安全性;继承性增加了软件的可扩充性及代码重用性;多态性使设计人员... 阅读全文
posted @ 2014-09-29 08:50 xue泥娃娃 阅读(251) 评论(0) 推荐(0) 编辑