1、return
View();返回值类型:System.Web.Mvc.ViewResult将视图呈现给响应的View()结果。注释View()类的此方法重载将返回一个具有空ViewName属性的ViewResult对象。如果你正在编写控制器操作的单元测试,则需为那些不采用字符串视图名称的单元测试...
分类:
其他好文 时间:
2014-05-01 13:34:10
阅读次数:
399
C#自定义泛型类用得最广泛的就是在集合(Collection)中。本文介绍了C#自定义泛型Generic的用法。AD:51CTO学院:IT精品课程在线看!Generic是Framework
2.0的新元素,中文名字称之为“泛型” ,特征是一个带有尖括号的类,比如ListC#自定义泛型类用得最广泛,就...
分类:
其他好文 时间:
2014-05-01 13:32:57
阅读次数:
286
在OnDraw(CDC* pDC) 中添加如下代码 CDC MemDC;
//首先定义一个显示设备对象 CBitmap MemBitmap;//定义一个位图对象 //随后建立与屏幕显示兼容的内存显示设备
MemDC.CreateCompatibleDC(NULL); //这时还不能绘图,因为...
分类:
其他好文 时间:
2014-04-30 23:31:05
阅读次数:
401
Problem Description
Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!
Input
One N in one line, process to the end of file.
Output
For each N, output N! i...
分类:
其他好文 时间:
2014-04-28 10:36:41
阅读次数:
341
Ubuntu12.04.4 Vmware 虚拟机安装总结
背景:最近准备入手一块树莓派(RaspberryPI),准备一下开发环境,可惜机器硬盘小,又舍不得格调Win7,所以只好装虚拟机了。考虑到对ubuntu12.04还熟悉,又是长期版,出了一段时间有问题可以解决。所以就没用刚出的Ubuntu14.04
涉及Ubuntu12.04.4安装,网络ssh samba配置,vmware tools安装,本文用Markdown编写...
分类:
其他好文 时间:
2014-04-28 10:36:41
阅读次数:
494
paip.utf-8,unicode编码的本质输出unicode文件原理 python
#别的语言,java php都是unicode,走十python不一样.
#enddef
#todo write to unicode encode
fileHandle = open ( r"c:\fmtSmpEnRst.txt", 'w',encoding="UTF-16"...
分类:
编程语言 时间:
2014-04-28 10:28:42
阅读次数:
374
Usage: docker [OPTIONS] COMMAND [arg...]
-H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use
A self-sufficient runtime for linux containers.
Co...
分类:
其他好文 时间:
2014-04-28 10:17:41
阅读次数:
359
本文只安装ndk,不安装什么IDE,因为我只需要命令行模式开发即可。首先安装openjdk 1.6,然后安装ant,这个不赘述。从这里下载NDK for Linux 64bit的版本: http://developer.android.com/tools/sdk/ndk/index.html下载后,解压到本地目录,比如/opt/目录下, 然后设置环境变量,添加三行到~/.bashrc文件expor...
分类:
移动开发 时间:
2014-04-27 22:48:20
阅读次数:
497
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gao.hzau;
import java.awt.Color;
import java.awt.FileDialog;
import java.awt.Font;
import j...
分类:
其他好文 时间:
2014-04-27 21:34:04
阅读次数:
492
Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
解决方法:
setenforce 0...
分类:
移动开发 时间:
2014-04-27 21:18:05
阅读次数:
450