1. 标签处理类 1 public class MyReferer extends
BodyTagSupport { 2 private String site; 3 private String back; 4 public String
getSite() { 5 ...
分类:
其他好文 时间:
2014-05-24 03:54:31
阅读次数:
252
内容来源于开发者社区。用到的代码如下:using UnityEngine;using
System.Collections;using System;public class ClockAnimator : MonoBehaviour{
private const float h...
分类:
其他好文 时间:
2014-05-24 00:47:44
阅读次数:
308
面向对象的三大特点:1:封装。2:继承。3:多态,对于多态在PHP当中不是那么的好介绍,只需要记住是运行时加载就行了!对象的几个语句的意思;1:public在对象中是公开访问的,2:private在对象中是不能访问他的内容,保密状态3:protected:户类和内部访问;4:——construct初...
分类:
Web程序 时间:
2014-05-24 00:44:37
阅读次数:
431
private static string CmdPing(string strIp){Process
p = new Process(); p.StartInfo.FileName =
"cmd.exe";//设定程序名p.StartInfo.UseShellExecute = false; //...
分类:
其他好文 时间:
2014-05-24 00:42:36
阅读次数:
481
private void dataGridViewX1_CellPainting(object
sender, DataGridViewCellPaintingEventArgs e){ if (e.RowIndex >= 0 &&
e.ColumnIndex>=0) { ...
如果通过网络加载了一张位图,想拿到这张位图的Bitmap,有两种办法,至于那种好,可能要看是在什么情况下了1,根据已有的Drawable创建一个新的Bitmap:private
Bitmap bitmap;private void drawableToBitamp(Drawable drawable...
分类:
其他好文 时间:
2014-05-23 11:04:39
阅读次数:
323
It is not possible using the .NET BCL. However if
you really want it you can use native SetCursorPos inUser32.dll.
[DllImport("User32.dll")]private st...
分类:
其他好文 时间:
2014-05-23 10:16:34
阅读次数:
236
写的一个Android对话框,点击按钮获取EditText里面的值,这里一直报空指针异常,研究了很长时间终于解决了。
异常如下:
我原来的代码:
//更新对话框
private void updateDialog(final String id){
TableLayout updatemsg = (TableLayout)getLayoutInflater().inflate(...
分类:
移动开发 时间:
2014-05-22 06:40:46
阅读次数:
355
1 private void button2_Clic k(object sender,
EventArgs e) 2 { 3 //button2 : “确认”按钮 4 ...
/* 先定义一个Node类用来存储节点的值域和指针域 * 即当前节点中的值和后面节点的方法 *
在C中就是相当与定义一个结构体类型一个数据域和指针域的方法 */class LNode{//这个写法已经非常固定了
设置两个属性分别用set函数和get函数来得到这两个属性 private int da....
分类:
编程语言 时间:
2014-05-20 11:14:55
阅读次数:
316