前言
学习任何一个稍有难度的技术,要对其有充分理性的分析,之后果断做出决定---->也就是人们常说的“多谋善断";本系列虽然涉及的是socket相关的知识,但学习之前,更想和广大程序员分享的是一种心境微笑:学习是一个循序渐进的过程,心态应该随时调节,保持戒骄戒躁的状态。比如最近在看网易公开课MIT《算法导论》,老师提到,学习算法之前要计算机数学+离散数学+概率论等课程的知识,所以一直学不好算法的程序员不妨从基础入手,这都是中国式教育惹的祸啊!(此处省略一万字......)...
分类:
编程语言 时间:
2014-05-13 09:36:20
阅读次数:
394
1. 下面的代码运行后,将输出什么结果? String s1 = new String("Test"); String s2 = new String("Test"); if (s1==s2)
System.out.println("Same"); if (s1.equals(s2))
System.out.println("Equals");
A. Same...
分类:
编程语言 时间:
2014-05-13 07:42:26
阅读次数:
306
1、
??
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrom...
分类:
其他好文 时间:
2014-05-13 07:06:35
阅读次数:
284
显示7种Dialog下面是图,然后一次对应的代码实现
实现代码
new AlertDialog.Builder(AlertDialogSamples.this)
.setIcon(R.drawable.alert_dialog_icon)
.setTitle(R.string.alert_dialog_two_button...
分类:
移动开发 时间:
2014-05-13 05:47:34
阅读次数:
446
Count the string
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4239 Accepted Submission(s): 1977
Problem Description
It is wel...
分类:
其他好文 时间:
2014-05-13 00:14:55
阅读次数:
357
#include #include #include #include #include
#include #include #include #include #include using namespace std;struct
MyStruct{ string stru; int ...
分类:
其他好文 时间:
2014-05-12 21:51:09
阅读次数:
572
C# 导出Excel方法 先引用下System.IO;System.data;具体函数如下: 1
public static bool ExportCSV(DataTable dt, string fileNmae) 2 { 3 bool Ms...
分类:
其他好文 时间:
2014-05-12 21:37:43
阅读次数:
364
Action接口:public interface Action {public String
execute(String str);}Action的两个实现public class UpperAction implements Action
{private String message;pub...
分类:
编程语言 时间:
2014-05-12 21:29:36
阅读次数:
389
1. Auto generation of
columns最简单的方法莫过于让DataGrid根据数据源中的字段自动生成列了:根据实体类的公共属性,
能够自动生成四种类型的数据列,对应关系如下:TextBox columns for string values;CheckBox columns fo...
分类:
其他好文 时间:
2014-05-12 19:49:17
阅读次数:
519
今天想使用String.Format,和平时的用法不一样。直接上代码: [Test]
public void TestMethod6() { string A = "A"; string B = "B"; ...
分类:
其他好文 时间:
2014-05-12 19:38:59
阅读次数:
296