码迷,mamicode.com
首页 >  
搜索关键字:yield return    ( 62447个结果
模板类的全特化、偏特化
我们先来定义一个普通的模板类1 template2 struct Test3 {4 Test(){ cout t1;4 Test t2;5 Test t3;6 return 0;7 }输出的结果1: 模板类 模板类 模板类如果我们这样写,再增加一个模板类 1 ...
分类:其他好文   时间:2014-04-28 08:02:07    阅读次数:749
[leetcode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".给定两个二进制的字符串,返回他们的和。对于a,b两个二进制字符串,首先通过交换使a的长度小于b...
分类:其他好文   时间:2014-04-28 02:05:20    阅读次数:502
38属性的种种,只读只写属性、自动属性、静态属性、抽象属性、接口属性
□ 只读属性public class Example { string name; public string Name { get {return name;} } }□ 只写属性public class Example { string ...
分类:其他好文   时间:2014-04-27 23:34:03    阅读次数:507
素数求和
#include using namespace std;int fun(int a){ if(a==1) return 0; for(int i=2;i>M; while(M--) { int i,sum=0; cout>N; ...
分类:其他好文   时间:2014-04-27 22:06:54    阅读次数:578
hdu4104 Discount
给n个数,问最小不能组成的正整数是多少。 数学归纳法。 从sum=0开始,每次考察sum+1>=a[i],则sum+1肯定可以达到,那么sum+a[i]以内的数肯定可以达到。 #include #include #include #include #include #include #include #include #include #define...
分类:其他好文   时间:2014-04-27 20:06:50    阅读次数:554
leetcode day4 -- Binary Tree Postorder(Preorder) Traversal && Edit Distance
?? 1、Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 retu...
分类:其他好文   时间:2014-04-27 18:58:59    阅读次数:481
POJ2007 Scrambled Polygon
极角排序...
分类:其他好文   时间:2014-04-27 18:14:10    阅读次数:547
62447条   上一页 1 ... 6243 6244 6245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!