using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;namespace GetSetTest{
class A { ...
分类:
其他好文 时间:
2014-05-10 07:39:24
阅读次数:
220
使用索引器的目的是为了能够像数组一样访问类中的数组型的对象。using
System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Threading.Tasks;namespace...
分类:
其他好文 时间:
2014-05-10 05:43:44
阅读次数:
218
参考资料:《大话设计模式》//模板方法模式--处理问题的步骤相同,但步骤的实现不同using
System;using System.Collections.Generic;using System.Linq;using
System.Text;namespace ds_templatemethod...
分类:
其他好文 时间:
2014-05-10 05:19:04
阅读次数:
322
1: using System; 2: using
System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6:
namespace AnkeEdu.Tools 7: { 8: 9: /// 10: ///...
分类:
移动开发 时间:
2014-05-09 23:40:45
阅读次数:
551
1: using System; 2: using
System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6:
namespace AkDTH.Common 7: { 8: /// 9: /// 时间字符...
分类:
其他好文 时间:
2014-05-09 23:29:10
阅读次数:
400
聪明的办法是想:求前10位,那只要前8位加起来,进2位就OK。本的办法,就是真的加起来,截前面10位。如我。numList
= str.split()sum = 0for i in range(0,len(numList)): sum += int(numList[i][0:50])
p...
分类:
其他好文 时间:
2014-05-09 23:16:32
阅读次数:
350
最近在学习xml.linq
网上也找了一些资料都不大全面,因此在这写了一点东西和大家分享,由于本人知识有限,如有错误请指证可扩展标记语言,标准通用标记语言的子集,一种用于标记电子文件使其具有结构性的标记语言。它可以用来标记数据、定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言。
它非常适...
分类:
其他好文 时间:
2014-05-09 23:12:08
阅读次数:
425
方式一 Linq To Entity形式:
///
/// 查询的数据
///
/// 升序asc(默认)还是降序desc
/// 排序字段
/// 查询条件
/// 额外的参数
///
public IQueryable DaoChuData(...
分类:
其他好文 时间:
2014-05-09 22:58:11
阅读次数:
553
组合框使用方法,按照下面图片上提示,设计一个windows应用程序,实现不同运算。
界面设计:
代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;...
题目链接
迭代加深搜索思想。
枚举答案K,考虑到能否切出K个木头,那么我们当然选最小的K个来切。
1、对于原材料,我们是首选最大的还是最小的?显然,首选大的能够更容易切出,也更容易得到答案。
2、对于目标木头,我们是优先得到最大的还是最小的?显然,由于K个木头我们都要得到,那么当然先把最大的(最难得到的)先得到,这种搜索策略更优。
3、假设总原材料为all,前K个木头总和为sum,那...
分类:
其他好文 时间:
2014-05-09 21:07:28
阅读次数:
305