1.JAVA反射机制http://www.cnblogs.com/jqyp/archive/2012/03/29/2423112.html2.String StringBuilder StringBuffer 对比http://blog.csdn.net/clam_clam/article/deta...
分类:
其他好文 时间:
2014-12-15 10:18:09
阅读次数:
145
1.获取网页源码函数 1 string getPageText(string url) 2 { 3 string retVal = ""; 4 dtUpdate = DateTime.Now; 5 labMess...
值类型和引用类型,栈和堆的含义 本文主要是讨论栈和堆的含义,也就是讨论C#的两种类据类型:值类型和引用类型; 虽然我们在.net中的框架类库中,大多是引用类型,但是我们程序员用得最多的还是值类型。 引用类型如:string,Object,class等总是在从托管堆上分配的,C#中new操作符返回对象...
分类:
其他好文 时间:
2014-12-15 10:17:12
阅读次数:
176
想要获取URL栏中的字符串,于是敲下代码如下:string other = HttpContext.Current.Request.ServerVariables("QUERY_STRING");结果报错:Request.QueryString 不能像使用方法那样使用不可调用 解决方法:将圆括号“(...
分类:
其他好文 时间:
2014-12-15 10:16:33
阅读次数:
334
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2014-12-15 09:09:52
阅读次数:
166
抽象类
1.抽象类概念
抽象类:包含抽象方法的类,相比于普通类,他多了一个抽象方法。
抽象方法:只声明但是没有实现的方法,用abstract关键字来定义。
未实现的举例:
class A
{
private String name ;
public void print()
}
在类中声明的方法,有{}则说明有方法体,则实现;没有{},则未实现。
2.使用规则
包含一个...
分类:
编程语言 时间:
2014-12-15 09:09:52
阅读次数:
192
1.扩展名隐藏
文件扩展名导致编译失败。把隐藏文件扩展名给显示出来。
2.非法字符错误
只要看到是非法字符,肯定是中英文问题。
因为我们要求所有的符号全部是英文状态的。
3.注意大小写问题
class -- Class
String -- string
System -- system
4.括号的对应问题
在java程序中,括号都是成对出现的。
所以,...
分类:
编程语言 时间:
2014-12-15 09:03:15
阅读次数:
145
用正则表达式+Java大数真是太爽了,不信?你用C++写一遍试试。
先上代码:
import java.math.BigDecimal;
import java.util.*;
import java.util.regex.*;
public class Main748 {
public static void main(String[] args) {
Scanner sca...
分类:
其他好文 时间:
2014-12-15 09:02:47
阅读次数:
153
//注释一行 命名空间(namespace firstDebug)类( class Program) 主函数,一整个项目,有且只有一个主函数,它是程序的入口(static void Main(string[] args)数据类型 变量名=值; int i=0; 或者分开写 int s; s=1;同....
这里送上一道微软的笔试题,具体题目如下:Time Limit: 10000msCase Time Limit: 1000msMemory Limit: 256MBDescriptionConsider a string set that each of them consists of {0, 1}...
分类:
其他好文 时间:
2014-12-15 08:54:31
阅读次数:
146