C++
文章平均质量分 80
openzig
少年不识愁滋味
展开
-
C++ 类,公有继承,保护继承,私有继承
转自:http://hi.baidu.com/秀才太守 C++不同于C的一个特征就是引入了类的概念,本文就类的公有变量(函数),保护变量(函数),私有变量(函数)以及公有继承,保护继承,私有继承做一个记录。 参考了林锐博士的《高质量程序设计指南》,《程序员宝典》及网络上面的一些帖子。 先来写一个基类: class parent { public: parent(int转载 2012-09-22 09:46:10 · 939 阅读 · 0 评论 -
C#中的正则表达式
输出匹配的部分: public static void Main(string[] args) { string text = "I've found this amazing URL at http://www.sohu.com ,and then find ftp://ftp.sohu.com is better.";原创 2013-07-21 19:15:46 · 568 阅读 · 0 评论