http://www.youtube.com/watch?v=1TPZetHaZ-A Introduction To NUnit1. create Nunit test case(1)new Project -> Class Library C#(2) add new item -> Cla...
最主要是取得了桌面的DC,并且设置为背景色透明:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type ...
分类:
其他好文 时间:
2014-11-17 21:08:06
阅读次数:
199
开发所用delphi版本是xe2,效果图如下:代码如下:-----------------------------------------------------------------------------------------------------------------unit Unit...
分类:
Windows程序 时间:
2014-11-17 19:26:21
阅读次数:
2098
DZY loves colors, and he enjoys painting.
On a colorful day, DZY gets a colorful ribbon, which consists of n units (they are numbered from 1 to n from
left to right). The color of thei-th unit of...
分类:
其他好文 时间:
2014-11-15 01:28:29
阅读次数:
222
1、安装vncyuminstalltigervnc-server-y2、复制配置文件cp/lib/systemd/system/vncserver@.service/lib/systemd/system/vncserver@1.server3、修改配置文件[Unit]Description=Remotedesktopservice(VNC)After=syslog.targetnetwork.target[Service]Type=forking#Cleananyexisti..
分类:
其他好文 时间:
2014-11-14 17:58:33
阅读次数:
218
本文转载至http://blog.csdn.net/fengsh998/article/details/8109293IOS 自带单元测试。1、在创建时,将include Unit Tests钩上。这样创建后就会自动生成以Tests结属的测试工程。打开ProjectTest.m可以看到系统已创建好一...
分类:
移动开发 时间:
2014-11-13 23:53:36
阅读次数:
272
http://poj.org/problem?id=2393
题意:任务规定,一个酸奶制造厂,在n个星期内,分别要向外提供y[i]unit的酸奶。已知这个制造厂第i周制造每unit酸奶的费用为c[i],储存室储存每1unit酸奶1星期的费用为s。问要完成这个任务的最小费用是多少。
.
.
.
.
.
.
.
.
.
.
.
.
.
思路:简单贪心。维护一个目前最优的代...
分类:
其他好文 时间:
2014-11-11 22:55:16
阅读次数:
297
其实ef本身就是unit of work+repository的 其中继承自DbContext的类就是unit of work context中的DbSet属性就是repository,你也可以不建那些属性,而使用context.Set来获取一个DbSet 如果直接在逻辑层就ef了,一来可能觉得会与...
分类:
其他好文 时间:
2014-11-11 15:54:08
阅读次数:
358
DrawText函数简介 这个函数的作用非常easy,就是在指定的区域内输出格式化的文本。 函数原型:int DrawText( HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UNIT uFormat); hDC是设备上下文句柄。...
分类:
其他好文 时间:
2014-11-11 10:39:51
阅读次数:
193
function formatPayment(num) { var unit = ""; if (num < 10000) { return formatCurrency(num, 2); ...
分类:
其他好文 时间:
2014-11-11 10:37:07
阅读次数:
124