定义文件信息public class MyFileInfo { public string FileName { get; set; }//文件名 public string FilePath { get; set; }//文件路径 public lo...
分类:
其他好文 时间:
2015-01-27 20:11:34
阅读次数:
209
转自:http://www.cnblogs.com/zhangji/archive/2011/09/02/2163811.html一、Json的简单介绍从结构上看,所有的数据最终都可以分成三种类型:第一种类型是scalar(标量),也就是一个单独的string(字符串)或数字(numbers),比如...
分类:
编程语言 时间:
2015-01-27 20:07:41
阅读次数:
170
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;#脚本文件请求的路径 fastcgi_param QUERY_STRING $query_string; #请求的参数;如?app=123 fa...
分类:
其他好文 时间:
2015-01-27 20:05:48
阅读次数:
176
using System;using System.IO;using System.Text;namespace Core{ public class LogHelper { private static void writeLog(string log) {...
分类:
其他好文 时间:
2015-01-27 20:02:29
阅读次数:
186
注意: for (int i = 1; i 2 #include 3 #include 4 using namespace std; 5 6 int main() { 7 string aaa; int sum = 0; 8 while (getline(cin...
分类:
其他好文 时间:
2015-01-27 19:58:53
阅读次数:
164
【转自】http://www.cnblogs.com/wendingding/p/3884513.html一、字符串字符串是String类型的数据,用双引号""包住文字内容 let website = "http://www.wendingding.com"1.字符串的常见操作(1)用加号 + 做字...
分类:
其他好文 时间:
2015-01-27 19:58:36
阅读次数:
247
标题:Add Binary通过率:25.1%难度:简单Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".本题主要就是模拟二进制去处理,跟上次做到...
分类:
其他好文 时间:
2015-01-27 19:57:32
阅读次数:
107
整理了一下PHP中读取文件的几个方法,方便以后查阅。1.fread string fread ( int $handle , int $length ) fread() 从 handle 指向的文件中读取最多 length 个字节。该函数在读取完最多 length 个字节数,或到达 EOF 的时.....
分类:
Web程序 时间:
2015-01-27 19:50:59
阅读次数:
192
private static String getSearchTime(String timeString){SimpleDateFormat dateformat = new SimpleDateFormat("dd/MMM/yyyy:hh:mm:ss Z",Locale.ENGLISH); Si...
分类:
编程语言 时间:
2015-01-27 19:48:13
阅读次数:
116
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of
S is 1000, and there exists one unique longest palindromic substring.(最长回文子串)
中心扩展法:
pub...
分类:
其他好文 时间:
2015-01-27 18:31:08
阅读次数:
151