摘要: C++中的class从面向对象理论出发,将变量(属性)和函数(方法)集中定义在一起,用于描述现实世界中的类。从计算机的角度,程序依然由数据段和代码段构成。C++编译器如何完成面向对象理论到计算机程序的转化?换句话:C++编译器是如何管理类、对象、类和对象之间的关系具体的说:具体对象调用类中的方法,那... 阅读全文
posted @ 2015-06-11 23:11 Say舞步 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 1)当类中没有定义任何一个构造函数时,c++编译器会提供默认无参构造函数和默认拷贝构造函数2)当类中定义了拷贝构造函数时,c++编译器不会提供无参数构造函数这里一定注意,当你只定义一个拷贝构造函数,在创建对象时是不能直接调用无参数构造函数的。3) 当类中定义了任意的非拷贝构造函数(即:当类中提供了有... 阅读全文
posted @ 2015-06-11 19:46 Say舞步 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Objective-C开发编码规范2015-05-09CocoaChinaCocoaChina来源:QianKaiLuObjective-C 编码规范,内容来自苹果、谷歌的文档翻译,自己的编码经验和对其它资料的总结。概要Objective-C 是一门面向对象的动态编程语言,主要用于编写 iOS 和 ... 阅读全文
posted @ 2015-06-11 18:41 Say舞步 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Most crossword puzzle fans are used toanagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST... 阅读全文
posted @ 2015-06-11 18:25 Say舞步 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, n... 阅读全文
posted @ 2015-06-11 18:05 Say舞步 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 由于每个木块堆的高度不确定,所以用vector保存AC代码:#include #include #include #include #include #include #include #include #include #include using namespace std;const int ... 阅读全文
posted @ 2015-06-11 17:52 Say舞步 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 主要用到排序和查找,sort和lower_bound两个STL就搞定了注意把“CASE# 1:”这个放到输入N个大理石之前和放到输入查找的大理石之前都可以ACAC代码:#include #include #include #include #include #include #include #in... 阅读全文
posted @ 2015-06-11 17:10 Say舞步 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Python 网页爬虫 & 文本处理 & 科学计算 & 机器学习 & 数据挖掘兵器谱2015-04-27程序猿程序猿来自:我爱自然语言处理,www.52nlp.cn链接:http://www.52nlp.cn/python-%E7%BD%91%E9%A1%B5%E7%88%AC%E8%99%AB-%... 阅读全文
posted @ 2015-06-11 00:36 Say舞步 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 来自:NoMasp柯于旺 - CSDN博客链接:http://blog.csdn.net/nomasp/article/details/45827145图的定义背景知识看到这篇博客相信一开始映入读者眼帘的就是下面这幅图了,这就是传说中的七桥问题(哥尼斯堡桥问题)。在哥尼斯堡,普雷格尔河环绕着奈佛夫岛... 阅读全文
posted @ 2015-06-11 00:25 Say舞步 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 在ViewController.m中添加代码:-(void)viewWillAppear:(BOOL)animated{ // 注册键盘出现通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@select... 阅读全文
posted @ 2015-06-11 00:18 Say舞步 阅读(228) 评论(0) 推荐(0) 编辑