public static void CreateSmallImage(string minImageFullPath, System.Drawing.Image originalImage, int x, int y, int size) { System.Drawing.Im...
分类:
Web程序 时间:
2015-06-05 19:32:48
阅读次数:
93
Delphi String 常用字串符处理函数:说明旧写法(Windows 平台)由1开始新写法(跨所有平台)由0开始插入字串Insert('str', Str, 1);Str := Str.Insert(0, 'str');删除字串Delete(Str, 1, 1);Str := Str.Remo...
decimald=0.0500m;d.ToString("0.##")就出来了也可以这样string.Format("{0:0.##}",d000).##表示最多保留2位有效数字,但是不包括0,就是说如果上面d=0.5000,出来后也只是0.5,方便多了^_^
1. 加载配置文件public static String getConfig(String fileName) { StringBuilder sb = new StringBuilder(); InputStream in = null; ...
分类:
其他好文 时间:
2015-06-05 19:06:57
阅读次数:
86
因为本人技术提升了,所以这个脚本又改进了,得益于同事给我悉心教导c#语法,这个脚本更好用了。废话不多说,直接上代码。#powerdby九叔
#批量从VMM和Hyper-V中获取IP地址,方便比对。更准确。
#转载必须注明出处,可以以此做改进。
param(
[String]$vmmServer="sc-vmmsp1"
)
I..
分类:
系统相关 时间:
2015-06-05 17:48:36
阅读次数:
256
这个题目的本质是考察除k取余法,方法为用十进制数去除以基数k,每次把商数作为下一次的值,余数写在旁边,一直做到商数小于基数,结束运算,然后从下到上,从最后一个商数到第一个余数的路径上所有的数构成了结果。
因为13进制涉及到了字母,因此使用string来存储这个数字,每次在string头部插入字符。...
分类:
其他好文 时间:
2015-06-05 17:43:48
阅读次数:
124
整个流程大体如下:
创建 thinpool
// This is theprogrammatic example of "dmsetup create"
funccreatePool(poolName string, dataFile, me...
分类:
移动开发 时间:
2015-06-05 17:39:09
阅读次数:
552
// 深拷贝,异常安全的深赋值
#include
#include
using namespace std;
class String
{
public:
String(const char *str = " ")
{
m_data = new char[strlen(str) + 1];
strcpy(m_data, str);
}
String(const String...
分类:
编程语言 时间:
2015-06-05 17:32:26
阅读次数:
144
1 题目:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo...
分类:
其他好文 时间:
2015-06-05 17:28:07
阅读次数:
114