码迷,mamicode.com
首页 >  
搜索关键字:str    ( 67828个结果
each()
循环 each() 参数:循环的对象,每次循环执行的函数,函数的参数(不传默认为对象本身)var lbl = $("#lbls > i");var str = "";Each(lbl, function (i) { str += i.innerHTML.trim()+","; });var arr ...
分类:其他好文   时间:2014-07-31 12:38:06    阅读次数:241
poj 1028
他就是个栈,栈就随便写了,贴代码#include #include #include using namespace std;int main(){ stack stack1,stack2; string str,s1,s2; str="http://www...
分类:其他好文   时间:2014-07-31 12:37:06    阅读次数:161
按字节截取字符串
按字节截取字符串,参数:字符串,截取的字符 function getStr(str, n) { if (lenFor(str) 255) { byteLen += 2; } else { byteLen++; } } return byteLen; } else { ret...
分类:其他好文   时间:2014-07-31 12:11:56    阅读次数:215
Java 的 String.split 函数,消除空字符串
代码:String str = "the music made it hard to concentrate";String delims = "[ ]+";String[] tokens = str.split(delims);结果为:the, music, made, it, hard, to,...
分类:编程语言   时间:2014-07-31 12:07:26    阅读次数:211
JavaLearning:JAVA IO 之内存操作流
package org.fun.io; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; public class ByteArrayDemo { public static void main(String[] args) { String str = "helloworld";// ...
分类:编程语言   时间:2014-07-31 09:56:26    阅读次数:261
字符串及字符的基础应用
字符串的应用 #region 查找字符 //string str = "123456"; //foreach (char time in str) //{ // Console.WriteLine("{0}", time); //} //Console.ReadKey(); #endr...
分类:其他好文   时间:2014-07-31 09:46:56    阅读次数:147
poj 1258 Agri-Net
kruskal 1 #include 2 #include 3 #include 4 using namespace std; 5 #define maxn 200 6 int a[maxn][maxn]; 7 int par[maxn]; 8 int n,len; 9 int num;10 str...
分类:Web程序   时间:2014-07-31 02:37:35    阅读次数:302
Python简单操作笔记
Python 类型转换 str(),repr()|format() : 将非字符类型转成子串 int() : 转为整形 float() : 转为浮点型 list(s) : 将字串s转成列表 tuple(s) : 将字串s转成元组 ...
分类:编程语言   时间:2014-07-31 02:17:35    阅读次数:425
UVa10815_Andy's First Dictionary(小白书字符串专题)
解题报告 思路: 字典树应用,dfs回溯遍历字典树 #include #include #include using namespace std; struct node { int v; node *next[26]; }; int l,m,cnt; char str[100],ch[100],dic[5500][100]; node *newnode() { ...
分类:其他好文   时间:2014-07-31 00:05:35    阅读次数:283
CII-原子
#ifndef ATOM_INCLUDED #define ATOM_INCLUDED extern int Atom_length(const char *str); extern const char *Atom_new(const char *str, int len); extern const char *Atom_string(const char *str); extern con...
分类:其他好文   时间:2014-07-31 00:04:09    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!