码迷,mamicode.com
首页 >  
搜索关键字:string+    ( 95377个结果
__proto__与prototype的区别与联系
最近在学习javascript的原型,发现了__proto__与prototype,学问很大,于是研究了一下。 首先解释一下什么是原型?  原型是一个对象,其他对象可以通过它实现属性继承。 对象又是什么呢? 在javascript中,一个对象就是任何无序键值对的集合,如果它不是一个主数据类型(undefined,null,boolean,number,string),那它就是一个对象。...
分类:其他好文   时间:2014-05-10 10:13:54    阅读次数:361
"aa".equals(a)这种写法为什么就可以避免空指针。
public static void main(String[] args) { String a=null; if("aa".equals(a))//这种情形,不出现空指针异常 //if(a.equals("aa"))//出现空指针异常 { System.out.println(true); } else { System.out.println(false); } } ...
分类:其他好文   时间:2014-05-10 09:20:33    阅读次数:257
POJ1474 Video Surveillance(半平面交)
很多道相似的半平面交,但只过了这个,心都碎了。。#pragma warning(disable:4996)#include #include #include #include #include #include #include using namespace std;#define maxn 2...
分类:其他好文   时间:2014-05-06 12:58:01    阅读次数:344
初学java之接口基础
1 /* 2 长城牌电视机 3 联想奔月5008PC机 4 */ 5 6 7 package st; 8 //接口回调实例 9 interface ShowMessage10 {11 void 显示商标 (String s);12 }13 class TV implement...
分类:编程语言   时间:2014-05-06 12:53:59    阅读次数:369
POJ3525 Most Distant Point from the Sea(半平面交)
今天打算做两道半平面交,一题卡太久了,心都碎了。。。#pragma warning(disable:4996)#include #include #include #include #include #include #include using namespace std;#define maxn...
分类:其他好文   时间:2014-05-06 12:27:57    阅读次数:389
hello
private Color(String name,int index){ this.setName(name); this.setIndex(index);} private Color(String name,int index){ this.setName(name); this.setInd...
分类:其他好文   时间:2014-05-06 12:08:59    阅读次数:242
java中的++运算符
java中的++运算符public class PlusPlusTest {/*** @param args*/public static void main(String[] args) {int a = 0;for (int i = 0; i < 10; i++) {a = a++;}Syste...
分类:编程语言   时间:2014-05-06 12:02:20    阅读次数:339
C/C++ -- Gui编程 -- Qt库的使用 -- Qt编码问题
1.直接使用QObject::trUtf8("中文字符串")2.头文件QTextCodec::setCodecForTr(QTextCodec::codecForName("utf-8"));QObject::tr("中文字符串")3.头文件QTextCodec::setCodecForCStrin...
分类:编程语言   时间:2014-05-06 10:43:40    阅读次数:264
combobox联动
1 private void w_day_scheduling_Load(object sender, EventArgs e) 2 { 3 4 if (ls_deptname == string.Empty) 5 ...
分类:其他好文   时间:2014-05-06 10:32:53    阅读次数:326
ASP.NET MVC 动态加载图像
private ImageInfo CreateImageFile(string fileName) { if (!File.Exists(fileName)) return null; Image image = Image.FromFile(fileName); MemoryStream ms....
分类:Web程序   时间:2014-05-06 10:01:43    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!