1.基础知识/*可以定义大小是0的数组,但不能引用,因为没有指向任何对象new
string[10]调用类的默认构造函数new int[10]没有初始化,但new
int[10]()会将数组初始化成0,返回第一个元素的首地址*/#include #include using namespace st...
分类:
编程语言 时间:
2014-05-17 20:11:13
阅读次数:
316
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 索引{ class Program { static void
Main(string[]...
分类:
其他好文 时间:
2014-05-17 20:10:36
阅读次数:
254
生成图片:1.生成图片$img=imagecreaturecolor(宽,高);2.生成颜色(1)当第一次调用生成颜色的方法,是生成背景颜色。
$bg=imagecolorallocate($img,0,0,0);(2) 第二次调用是生成图片上的文字或其他样式的颜色 $te=imagecolo...
分类:
其他好文 时间:
2014-05-17 19:43:28
阅读次数:
173
中文转Unicode:HttpUtility.UrlEncodeUnicode(string
str);转换后中文格式:"%uxxxx" 举例:"柳_abc123"
转换结果是:"%u67f3_abc123"Unicode转中文1:HttpUtility.UrlDecode(string str);...
分类:
Web程序 时间:
2014-05-17 19:29:51
阅读次数:
277
1. shell判断文件,目录是否存在或者具有权限 2. #!/bin/sh 3. 4.
myPath="/var/log/httpd/" 5. myFile="/var /log/httpd/access.log" 6. 7. # 这里的-x
参数判断$myPath是否存在并且是否具有可执行权限 ...
分类:
其他好文 时间:
2014-05-17 19:23:57
阅读次数:
267
1. this调用成员变量和成员函数2. this调用构造函数1. Person.java
public class Person{ String name ; void talk(){ System.out.println("my name is "
+ this....
分类:
其他好文 时间:
2014-05-17 19:02:37
阅读次数:
229
文件可以通过调用open或file来打开,open通常比file更通用,因为file几乎都是为面向对象程序设计量身打造本文地址:http://www.cnblogs.com/archimedes/p/python-file.html,转载请注明源地址。打开文件打开文件程序会调用内置的open函数,首...
分类:
编程语言 时间:
2014-05-17 18:58:06
阅读次数:
419
一,安装基础环境
1,安装jdk7,并配置环境变量(pyDev要求jdk7及以上版本,否则安装好也不显示) 2,下载Eclipse并解压
3,安装python3.X二,Eclipse下配置pyDev 1,安装插件:help -> Install new Software..
->输入PyDe...
分类:
编程语言 时间:
2014-05-17 18:54:51
阅读次数:
322
/// /// DataTable转成Json /// /// /// public static
string DataTableToJson(DataTable dt) { StringBuilder jsonBuilder = new
StringBuilder(); ...
分类:
Web程序 时间:
2014-05-17 18:40:18
阅读次数:
369
public class abc extends Thread{ private Object
prev=null; private Object self=null; private String msg=null; public abc(Object
prev,Object self,Strin...
分类:
编程语言 时间:
2014-05-17 18:39:01
阅读次数:
361