using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// DataGrid...
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// 列表视图操作类 ...
分类:
其他好文 时间:
2014-05-08 19:30:25
阅读次数:
337
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// 复选框操作类 ...
分类:
其他好文 时间:
2014-05-07 20:22:28
阅读次数:
345
#include
#include
using namespace std;
class Point //定义坐标点类
{
public:
Point():x(0),y(0) {};
Point(double x0, double y0):x(x0),y(y0){};
void PrintPoint(); //输出点的信息
double getx()
{
...
分类:
其他好文 时间:
2014-05-07 16:14:20
阅读次数:
267
这是在省赛前热身赛出的题目,可能是题目中有用到博弈的思想,很多人都在做,而且在尝试暴力。但是没有人往dp的方向上想。
题意:
有一个长度为n的整数序列,A和B轮流取数,A先取,每次可以从左端或者右端取一个数,所有数都被取完时游戏结束,然后统计每个人取走的所有数字之和作为得分,两人的策略都是使自己的得分尽可能高,并且都足够聪明,求A的得分减去B的得分的结果。...
分类:
其他好文 时间:
2014-05-07 16:09:45
阅读次数:
436
将所有的事件,属性,都映射到ViewModel中。好处多多,以后开发尽量用这种模式。解决方法:使用System.Windows.Interactivity.dll,添加该dll到项目引用xmlns:i="clr-namespace:System.Windows.Interactivity;assem...
分类:
其他好文 时间:
2014-05-07 14:50:04
阅读次数:
250
static局部变量static局部变量确保不迟于在程序执行流程第一次经过该对象的定义语句时进行初始化这种对象一旦被创建,在程序结束前不会被撤销。在该函数被多次调用的过程中,静态局部对象会持续存在并保存它的值。#include#include#includeusing
namespace std;s...
分类:
编程语言 时间:
2014-05-07 14:21:45
阅读次数:
384
第七章编程练习答案
7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数
//7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数
#include
using namespace std;
double average (unsigned x, unsigned y)
{
return (2.0 * x * y / (x + y));
}
i...
分类:
编程语言 时间:
2014-05-07 12:03:52
阅读次数:
727
声明:如果你正在发愁xml命名空间及其前缀问题,那么请继续,否则请跳过本文讲解使用jaxb结合dom4j的XMLFilterImpl过滤器实现序列化和反序列化的完全控制主要实现以下功能序列化及反序列化时忽略命名空间序列化时使用@XmlRootElement(namespace="http://www...
分类:
编程语言 时间:
2014-05-07 10:53:27
阅读次数:
1144