码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Codeforces Round #291 (Div. 2)(A)
看一眼就知道的题目往往还要再看看题意....不然白白WA后悔死了 #include #include #include #include #include using namespace std; const int maxn=65000+10; const int INF=1<<30; typedef long long LL; int main() { string str; ...
分类:其他好文   时间:2015-02-16 01:43:11    阅读次数:132
C# ref和out传递参数总结
如有雷同,不胜荣幸,若转载,请注明C#中ref和out传递参数总结,两个都可用来传递参数,ref使用时必须先进行初始化,out则不需要,只要在返回之前赋值即可,文字废话到此,下面直接上例子ref例子Class A{private string name = string.Empty;private ...
分类:Windows程序   时间:2015-02-16 00:23:04    阅读次数:212
C#中,用HashTable,DataTable等复制和克隆浅谈
如有雷同,不胜荣欣,若转载,请注明在C#中,用HashTable,DataTable等复制和克隆浅谈,下面直接看例子HashTable ht = null;ht = new HashTable();foreach(string s in ht){//...}//上面遍历的时候需要修改HashTabl...
分类:Windows程序   时间:2015-02-16 00:21:49    阅读次数:259
字符串切分 String.Split 和 Regex.Split
当切割字符串的是单个字符时可使用String.SplitstringstrSample="ProductID:20150215,Categroy:Food,Price:15.00";string[]sArray=strSample.Split(',');//注意,这里用的是单引号,而非双引号当切割字...
分类:其他好文   时间:2015-02-16 00:19:35    阅读次数:164
[LeetCode]Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses....
分类:其他好文   时间:2015-02-15 23:10:42    阅读次数:359
Swift学习笔记- 4.集合类型
数组数组的简单语法写数组应遵循 Array 这样的形式,也可以使用 [someType] 这样的简单语法。推荐使用更短的数组构造语句数组字面量: [value1, value2, value3]var shoppingList: [String] = ["Eggs", "Milk”]由于类型推断机制...
分类:编程语言   时间:2015-02-15 20:37:22    阅读次数:209
Swift学习笔记- 3. 字符串和字符
初始化空字符串创建空字符串,可以将空的字符串字面量赋值给变量,也可以初始化一个新的 String 实例:var emptyString = ""var anotherEmptyString = String()//两个字符串均为空,并相等可以通过检查其 Boolean 类型的 isEmpty 属性来...
分类:编程语言   时间:2015-02-15 20:34:40    阅读次数:264
Valid Parentheses
https://oj.leetcode.com/problems/valid-parentheses/Given a string containing just the characters'(',')','{','}','['and']', determine if the input stri...
分类:其他好文   时间:2015-02-15 20:30:40    阅读次数:183
Shell编程基础教程3--Shell输入与输出
3.Shell输入与输出 3.1.echo echo命令可以显示文本行或变量,或者把字符串输出到文件 echo [option] string -e:解析转义字符 -n:回车不换行,linux系统默认回车换行 转义字符:\c,\f,\t,\n…… 例子程序#!/bin/bash#e...
分类:系统相关   时间:2015-02-15 19:23:40    阅读次数:220
poj 3267 The Cow Lexicon 动态规划
字符串动态规划 匹配时两指针的重要思想 针对原串从后往前 不需要string类
分类:其他好文   时间:2015-02-15 19:23:05    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!