码迷,mamicode.com
首页 >  
搜索关键字:length    ( 19575个结果
JS简单加密
//简单的jS加密解密//code为对应的字符串,h为(2,8,10,16)就是要转成的几进制function en(code, h) { var monyer = new Array();var i,s; for(i=0;i<code.length;i++) monyer...
分类:Web程序   时间:2014-07-16 23:13:25    阅读次数:488
IPv4分析
IPv4的头部格式: 1. Version 版本号,默认是4。 2. IHL(Internet Header Length) 就是IPv4头部长度。这个长度的单位是32bit,一般是5,那么头部的长度就是5x32bit=160bit。 3. DSCP(Differentiated Services ...
分类:其他好文   时间:2014-07-10 13:46:14    阅读次数:338
计算文件夹大小、拷贝文件显示进度
计算文件夹大小(get-childitem -path $folder -recurse| measure-object -property length -sum).sum/1mb#拷贝文件提示进度(脚本只对零散文件有效,如果有大型文件的话,进度显示不正确)$folder = "D:\Temp_d...
分类:其他好文   时间:2014-07-10 00:34:36    阅读次数:392
char* to LPTSTR
1,char* to LPTSTRLPTSTR Char2LPTSTR(char* mchar){ int length ; wchar_t* pWChar; length = MultiByteToWideChar (CP_OEMCP, 0, mchar, -1, NULL, 0) ;...
分类:其他好文   时间:2014-07-07 23:39:23    阅读次数:235
[leetcode] Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
分类:其他好文   时间:2014-07-07 23:16:20    阅读次数:274
LeetCode Valid Palindrome
class Solution {public: bool isPalindrome(string s) { int len = s.length(); //if (len -1 && !(b = check2lower(s[q])) ); i...
分类:其他好文   时间:2014-06-30 13:43:33    阅读次数:178
LeetCode:Longest Palindromic Substring
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:其他好文   时间:2014-06-30 13:21:00    阅读次数:202
笛卡尔心形线
Matlab代码:closeall;alpha=-pi:pi/50:pi;x=2*cos(alpha);y=2*sin(alpha);forp=1:length(x)alpha1=-pi:pi/100:pi;x1=1*cos(alpha1);y1=1*sin(alpha1);holdon;plot(x(1,p)+x1,y(1,p)+y1-1,‘g‘);endaxisoff;holdon;theta=-pi:pi/50:pi;rho=2*(1-sin(theta));polar(theta,rho,‘*r..
分类:其他好文   时间:2014-06-28 00:24:12    阅读次数:381
scala学习三---文件里读取文本行
学习了scala的基本知识后,发现了scala是集函数式和指令式结合为一体的一种语言,代码更加简洁,但是对于用习惯了java的人来说,还真的不是一件易事~~今天学习scala脚本读取文本文件列子如下:importscala.io.Sourceif(args.length>0){for(line<-Source.fromFile(args(0)..
分类:其他好文   时间:2014-06-28 00:09:26    阅读次数:281
Summary: Binary Search
Iterative ways: 1 int binarySearch (int[] a, int x) { 2 int low = 0; 3 int high = a.length - 1; 4 int mid; 5 6 while (low x) {12 ...
分类:其他好文   时间:2014-06-27 22:27:06    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!