基本类型可以分为三类,字符类型char,布尔类型boolean以及数值类型byte、short、int、long、float、double。数值类型又可以分为整数类型byte、short、int、long和浮点数类型float、double。基本类型默认值
booleanfalse
char‘\u0000’(null)
byte(byte)0
short(short)0
int0
..
分类:
编程语言 时间:
2015-03-03 10:04:17
阅读次数:
209
Enumeration e=FileSystemRegistry.listRoots(); //获取文件路径
String root = (String) e.nextElement();
String url="file:///"+root+filename;
FileConnection conn=null;
try{
...
分类:
其他好文 时间:
2015-03-03 09:53:19
阅读次数:
823
alert(true==false); falsealert(true===false); falsealert('12'==12); truealert('12'===12); falsealert(null==undefined); truealert(null===undefined); fa...
分类:
其他好文 时间:
2015-03-03 09:47:42
阅读次数:
168
1.linux组成kernel、shell、工具程序有sh.bash一个例子!#/bin/bashecho ''执行之前chmod +x执行./2.一个小窍门 cp /dev/null /var/log/apache2/access.log 利用/dev/null来晴空apache2中的日志文件注释...
分类:
系统相关 时间:
2015-03-03 06:19:43
阅读次数:
300
在这次开发过程中,需要用到webview展示一些界面,但是加载的页面如果有很多图片就会发现内存占用暴涨,并且在退出该界面后,即使在包含该webview的Activity的destroy()方法中,使用webview.destroy();webview=null;对内存占回收用还是没有任何效果。有人说...
分类:
移动开发 时间:
2015-03-02 22:25:41
阅读次数:
245
//list.cpp#include "list.h"#include #include void initList(List *list) { list->first = NULL;}void destroyList(List *list) { Element *e = list->f...
分类:
其他好文 时间:
2015-03-02 22:19:05
阅读次数:
213
熟练使用错误函数对开源库的正确使用特别重要。
下面先给出简单的应用实例:
包含头文件:openssl/err.h
//加载错误信息
ERR_load_ERR_strings();
ERR_load_crypto_strings();
// 获取错误号
unsigned long ulErr = ERR_get_error();
char szErrMsg[1024] = {0};
char *pTmp = NULL;
// 格式:error:errId:库:函数:原因
pTmp = ERR_er...
分类:
其他好文 时间:
2015-03-02 20:58:52
阅读次数:
183
create database testgouse testgocreate table student( --学号 sno varchar(3) not null primary key, --姓名 sname varchar(4) not null, --性别 ...
分类:
数据库 时间:
2015-03-02 20:53:41
阅读次数:
254
null:为空,表示产量没有指向任何对象,如:string =null; int a =null;//是错的但可以这样,在类型后面加一个问号。int? a =null;//这就是正确的,是一种特殊的int类型int b = 12;加了问号后不能直接与int转换int b = a;//这是错误的...
1 struct BiTree 2 { 3 struct BiTree *lchild; 4 struct BiTree *rchild; 5 }; 6 7 int Node(struct BiTree *T) 8 { 9 if(T == NULL)10 ...
分类:
其他好文 时间:
2015-03-02 20:43:57
阅读次数:
129