码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
XML序列化反序列化—常用类
public class XMLSerializer { #region (public) xml序列化 /// /// xml序列化 /// /// obj类 /// string字符串 public static string XMLSerialize(object obj) { XmlSe.....
分类:其他好文   时间:2015-04-13 20:37:15    阅读次数:227
打印出五种图案
while (true)//迭代 要找出规律 看图形各行与各行('' "),( "☆")之间的规律 {Console.Write("请选择您想要得到的图形?A正方形;B三角形;C平行四边形;D菱形;E梯形:"); string n = Console.ReadLine(); Console.Writ...
分类:其他好文   时间:2015-04-13 20:36:50    阅读次数:121
continue 打出偶数
static void Main(string[] args) { while (true) { for (int i = 1; i <= 100; i++) { if (i%2==1) //遇到奇数就continue最后打出的都是偶数 { continue; } Console.Write(i+....
分类:其他好文   时间:2015-04-13 20:35:04    阅读次数:104
求一个字符串中连续出现次数最多的子串
#include#includeusing namespace std;int main(void){ int pos1,pos2,pos3,offset,temp=1,count=0; string str="bcdcdcdcdcdcdbcdasfabababds"; ...
分类:其他好文   时间:2015-04-13 20:24:37    阅读次数:96
AES加密解密
public class AESDE { public AESDE() { } #region AES-BAIDU /// /// AES加密 /// /// 明文 /// 密钥 /// public static string Encrypt( string encryptStr, str...
分类:其他好文   时间:2015-04-13 20:18:25    阅读次数:150
Integer 中的缓存类IntegerCache
2014年去某公司笔试的时候遇到这么一道题:public class Test { public static void main(String[] args) { Integer int1 = Integer.valueOf("100"); Integer int...
分类:系统相关   时间:2015-04-13 20:17:04    阅读次数:201
LeetCode Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr ...
分类:其他好文   时间:2015-04-13 19:01:32    阅读次数:141
清晰了解String
classStringTest{ publicstaticvoidmain(String[]args){Strings=newString("abc");Strings1="abc";Strings2=newString("abc");System.out.println(s==s1);System...
分类:其他好文   时间:2015-04-13 18:52:08    阅读次数:151
myBatis使用全注解小结
将最近工作中,使用到的myBatis注解方式的数据库操作总结一下1.User modelPublic class User{ Private int id; Private int gid; Private int age; Private String sex; Ge...
分类:其他好文   时间:2015-04-13 18:47:14    阅读次数:283
慎重选择删除元素的方法STL
1.要删除容器中有特定之的所有对象:如果容器是vector、string或deque,则使用erase-remove习惯用法。如果容器是list,则使用list::remove。如果容器是一个标准关联容器,则使用它的erase成员函数。2.要删除容器中满足特定判别式(条件)的所有对象:如果容器是ve...
分类:其他好文   时间:2015-04-13 18:45:53    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!