上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 先计算出最长文件的长度M,然后计算列数和行数,最后输出即可。AC代码:#include #include #include #include #include #include #include #include #include #include #include #include #includ... 阅读全文
posted @ 2015-06-12 17:15 Say舞步 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 逐个生成丑数,对于任意丑数x,2x、3x、5x也都是丑数。AC代码#include #include #include #include #include #include #include #include #include #include #include #include #include ... 阅读全文
posted @ 2015-06-12 16:34 Say舞步 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 用两个队列,每个团队有一个队列,包含自己队伍中的人员编号,而团队整体形成一个队列,包含队列中的团队编号。AC代码:#include #include #include #include #include #include #include #include #include #include #in... 阅读全文
posted @ 2015-06-12 15:44 Say舞步 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 为每个不同的集合分配一个唯一的ID,每个集合表示成所包含元素的ID集合,这样集合就可以用STL的set来表示。栈是一个stack。AC代码:#include #include #include #include #include #include #include #include #include... 阅读全文
posted @ 2015-06-12 14:55 Say舞步 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Data in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spreadsheets can be applied to single ce... 阅读全文
posted @ 2015-06-12 13:13 Say舞步 阅读(283) 评论(0) 推荐(0) 编辑
摘要: democlass Test{public: const void OpVar(int a, int b) { a = 100; }protected:private:};Test类中有一个成员函数OpVar,有一个const修饰符也可以写成下两种形式class Test{public: void... 阅读全文
posted @ 2015-06-12 00:04 Say舞步 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页