1. 运行:regsvr32 %windir%/system32/vbscript.dll (其实这一步也可以省,确保万一,还是执行吧)2. 运行:msdtc -resetlog3. 重新安装IIS4. 请把IIS的根目录设置到其他盘!养成好习惯总没错~ Read More
posted @ 2010-02-20 19:26 robin.won Views(266) Comments(0) Diggs(0)
#include using namespace std;void Permutations(char *array,const int k,const int m){ if(k==m) { for(int i=0;i<=m;i++) cout<<array[i]<<""; cout<<endl; } else{ for(int i=k;i<=m;i++) { swap(array[k],array[i]); Permutations(array,k+1,m); swap(array[k],array[i]); } }}int Read More
posted @ 2010-02-12 20:21 robin.won Views(166) Comments(0) Diggs(0)
Panel可以实现ImageObserver接口,所以Panel类后添加“implements ImageObserver”,在Panel的构造方法中初始化Buffer Image对象,然后在Paint语句中添加Graphics的DrawImage方法,其Observer参数为this。实例如下:class MyPanel extends JPanel implements MouseListener, ImageObserver { BufferedImage bi; private static final long serialVersionUID = 1L; public MyPane Read More
posted @ 2010-02-12 20:20 robin.won Views(1583) Comments(0) Diggs(0)
1. 在paint中new BufferedImage;2. Graphics2D=bufferedimage.createGraphics();3. Graphics2D.draw;4. Graphics.drawImage. Read More
posted @ 2010-02-12 20:18 robin.won Views(398) Comments(0) Diggs(0)
import java.awt.Color;import java.awt.Graphics;import java.awt.Graphics2D;import javax.swing.JFrame;import javax.swing.JPanel;public class MyFrame extends JFrame { /** * */ privatestatic final long serialVersionUID = 1L; classMyPanel extends JPanel { /** * */ privatestatic final long serialVersion.. Read More
posted @ 2010-02-05 22:37 robin.won Views(825) Comments(0) Diggs(0)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Roading001{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void pictureBox1_Paint(object send Read More
posted @ 2010-01-21 20:17 robin.won Views(525) Comments(1) Diggs(0)
//编译时常量public const int constValue=100;//运行时常量public static readonly int readonlyValue=200;代码将被编译成MSIL(微软中间语言),在MSIL中,constValue直接被100所替换,且以后不会再更改;readonlyValue则只是变成对其变量的引用,其值在以后还可以改变。所以一般选择readonly变量,这样比较灵活;但是诸如PI等于3.1415926这种一百年不变的变量,可以使用const。——摘自《Effective C#》 Read More
posted @ 2010-01-21 20:05 robin.won Views(193) Comments(0) Diggs(0)
double a=2;double b=Math.Pow(a,3);可得b=8专有的平方根函数Math.Sqrt(a)也可由Math.Pow(a,0.5)代替。 Read More
posted @ 2010-01-21 19:35 robin.won Views(1959) Comments(0) Diggs(0)