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
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
public class AESDE { public AESDE() { } #region AES-BAIDU /// /// AES加密 /// /// 明文 /// 密钥 /// public static string Encrypt( string encryptStr, str...
分类:
其他好文 时间:
2015-04-13 20:18:25
阅读次数:
150
2014年去某公司笔试的时候遇到这么一道题:public class Test { public static void main(String[] args) { Integer int1 = Integer.valueOf("100"); Integer int...
分类:
系统相关 时间:
2015-04-13 20:17:04
阅读次数:
201
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
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注解方式的数据库操作总结一下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
1.要删除容器中有特定之的所有对象:如果容器是vector、string或deque,则使用erase-remove习惯用法。如果容器是list,则使用list::remove。如果容器是一个标准关联容器,则使用它的erase成员函数。2.要删除容器中满足特定判别式(条件)的所有对象:如果容器是ve...
分类:
其他好文 时间:
2015-04-13 18:45:53
阅读次数:
125