static void Main(string[] args) { while (true) { double a, b, c,d; a = Convert.ToDouble(Consol...
分类:
其他好文 时间:
2015-03-30 18:26:17
阅读次数:
125
while (true) { int a, b, c, d; Console.WriteLine("请输入第1个数:"); a = Convert.ToInt32(Console.Rea...
分类:
其他好文 时间:
2015-03-30 16:07:50
阅读次数:
130
格式: CONVERT(data_type,expression[,style]) 说明: 此样式一般在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar) 相互转换的时候才用到. 例子...
分类:
数据库 时间:
2015-03-30 08:02:03
阅读次数:
224
kvm 虚拟机的磁盘大小可通过命令:qemu-img resize filename size 来改,要注意的是resize只支持raw格式的磁盘文件,如果想更改qcow2等格式的磁盘大小,需先用qemu-img convert 转换磁盘格式后才能更改大小;另外,用命令改完大小后需重启kvm虚拟机,...
分类:
其他好文 时间:
2015-03-29 16:18:17
阅读次数:
147
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
{CSDN:CODE:630443}...
分类:
其他好文 时间:
2015-03-29 07:08:21
阅读次数:
128
Go to my personal blog
There is a program to convert a string of hexadecimal digits into its equivalent integer value as below.
enum loop {NO, YES};
/* htoi: convert hexadecimal string s to int...
分类:
其他好文 时间:
2015-03-28 17:19:59
阅读次数:
269
public class DataTypeChangeHelper { /** * 将一个单字节的byte转换成32位的int * * @param b * byte * @return convert result */ public static int unsignedByteToI...
分类:
编程语言 时间:
2015-03-28 16:56:57
阅读次数:
177
static void Main(string[] args) { while (true) { double x,y; Console.Write("请输入坐车的距离:"); x = Convert.ToDouble(Console.ReadLine()); if (x>0&&x 3 && x ....
分类:
其他好文 时间:
2015-03-28 14:15:30
阅读次数:
117
{ while (true) { double x; Console.WriteLine("请输入坐车距离"); x = Convert.ToDouble(Cons...
分类:
其他好文 时间:
2015-03-28 12:50:30
阅读次数:
113
这是个神奇的工具,居然使用命令行就可以这么方便的处理图片。功能有待挖掘。这个是把图片批量进行 resize 的脚本。#!/bin/shcounter=1root=mypictresolution=400x300for i in `ls -1 $1/*.jpg`; doecho "Now workin...
分类:
其他好文 时间:
2015-03-28 11:25:38
阅读次数:
121