码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
POJ 2121
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 //freopen("acm.acm","r",stdin); 8 char c; 9 string s; 10 ...
分类:其他好文   时间:2015-06-10 18:47:03    阅读次数:167
DataTable去除重复行
//抽取dt中的特定列"Region","Cur","Year"组合成新的datDataTable dat = dt.DefaultView.ToTable(false, new string[]{ "Region","Cur","Year" });DataView dv = new DataVie...
分类:其他好文   时间:2015-06-10 18:45:52    阅读次数:109
POJ 2255
1 #include 2 #include 3 using namespace std; 4 5 struct node 6 { 7 char c; 8 node * l; 9 node * r;10 };11 12 node * make_tree(string p...
分类:其他好文   时间:2015-06-10 18:43:20    阅读次数:110
POJ 2041
#include #include #include using namespace std;string fun_c(string s);string fun_j(string s);string fun_e(string s);string fun_a(string s);string fun_...
分类:其他好文   时间:2015-06-10 18:42:24    阅读次数:77
POJ 2021
#include #include #include #define MAXN 105using namespace std;struct node{ string name_f; string name; int f_c; int age;};node _m[MAXN];i...
分类:其他好文   时间:2015-06-10 18:40:30    阅读次数:110
java正则表达式 match、find匹配位置
如题,对于java正则表达式这几个方法匹配一次后的,匹配位置搞不太清楚,就写了几个例子。如下: String ss="ooaaoo"; Pattern pt=Pattern.compile("(o+)"); Matcher mt=pt.matcher(ss); // mt.lookingAt(); // mt.matches(); ...
分类:编程语言   时间:2015-06-10 17:30:31    阅读次数:365
JAVA把字符串当作表达式运行
直接可以穿一个字符串运行 private static void test(String pm1) { ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("js"); Object result; try { result ...
分类:编程语言   时间:2015-06-10 17:26:26    阅读次数:94
POJ 1936
#include#includeusing namespace std;int main(){ //freopen("acm.acm","r",stdin); string s1; string s2; int len_1; int len_2; int i; ...
分类:其他好文   时间:2015-06-10 17:16:07    阅读次数:86
POJ 1906
#include #include #define MAXN 150using namespace std;int _m[MAXN];string p[65] = { "1", "3", "9", "27", ...
分类:其他好文   时间:2015-06-10 17:14:59    阅读次数:111
C# 判断一个数组是否包含某个给定的元素
string[]elements=newstring[50];if(Array.IndexOf(elements,"sss")!=-1){//存在//返回的值就是"sss"在数组中的下标}else{//不存在}
分类:编程语言   时间:2015-06-10 17:07:37    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!