码迷,mamicode.com
首页 >  
搜索关键字:unit 5练习    ( 4539个结果
C# Nunit Unit Testing
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...
分类:Windows程序   时间:2014-11-21 06:54:42    阅读次数:254
把文字输出到屏幕
最主要是取得了桌面的DC,并且设置为背景色透明:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type ...
分类:其他好文   时间:2014-11-17 21:08:06    阅读次数:199
Delphi动态创建组件,并释放内存
开发所用delphi版本是xe2,效果图如下:代码如下:-----------------------------------------------------------------------------------------------------------------unit Unit...
分类:Windows程序   时间:2014-11-17 19:26:21    阅读次数:2098
Cf 444C DZY Loves Colors(线段树)
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
centos7 安装vnc
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
IOS 单元测试
本文转载至http://blog.csdn.net/fengsh998/article/details/8109293IOS 自带单元测试。1、在创建时,将include Unit Tests钩上。这样创建后就会自动生成以Tests结属的测试工程。打开ProjectTest.m可以看到系统已创建好一...
分类:移动开发   时间:2014-11-13 23:53:36    阅读次数:272
POJ 2393 Yogurt factory(简单贪心)
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的简单用法
其实ef本身就是unit of work+repository的 其中继承自DbContext的类就是unit of work context中的DbSet属性就是repository,你也可以不建那些属性,而使用context.Set来获取一个DbSet 如果直接在逻辑层就ef了,一来可能觉得会与...
分类:其他好文   时间:2014-11-11 15:54:08    阅读次数:358
DrawText的使用
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!