// demo1.cpp : 定义控制台应用程序的入口点。//通过此例程了解重载#include
"stdafx.h"#include using namespace std;class CMath{public:CMath(float
a):m_a(a){}~CMath(){}double Add...
分类:
编程语言 时间:
2014-05-17 13:24:50
阅读次数:
343
//获取内部 ScrollViewer方法public static T
FindVisualChild(DependencyObject obj) where T : DependencyObject { if (obj !=
null) { for (int i = 0; i (child); ...
分类:
其他好文 时间:
2014-05-17 13:09:33
阅读次数:
275
import java.awt.*;import javax.swing.*;public class
demo_3{ public void JFrameContanier() { JFrame jf=new JFrame();
jf.setSize(300,200); jf.setVisi...
分类:
编程语言 时间:
2014-05-17 07:52:54
阅读次数:
347
亲测win7下可用,win8下由于系统不支持Aero效果,所以效果不是半透明的。代码:博客园插入不了代码了。。。。。public partial class
Form1 : Form { int en; public struct MARGINS { ...
/** * Created by rabbit on 2014-5-12. */ public
class HalfSerach { public static void main(String[] args) { int [] arr =
{3,6,7,9,11,22,35};...
分类:
编程语言 时间:
2014-05-17 03:14:25
阅读次数:
294
1 public string ByteToString(byte[] inputBytes) 2 {
3 StringBuilder temp = new StringBuilder(2048); 4 foreach (byte tempByte in
inputBytes) 5...
分类:
其他好文 时间:
2014-05-17 01:39:05
阅读次数:
255
[ JDK生成代理 ]
JDK中给我们提供了一个Proxy类可以动态的给我们生成代理.
假定我们要做一个权限管理系统, 需要控制用户对某一个方法的访问. 如果user为null, 那么不让用户访问save方法.
① 接口类: PersonService
public interface PersonService {
public void save();
}...
分类:
编程语言 时间:
2014-05-13 15:35:46
阅读次数:
267
// 处理另存文件的菜单
public void handleSaveAsFile() {
// 设置对话框的风格
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e1) {
// TODO Auto-generated catch...
分类:
其他好文 时间:
2014-05-13 14:45:25
阅读次数:
239
You are given a sequence of integers, A1,A2,...,An. And you are allowed a manipulation on the sequence to transform the origin sequence into another sequence B1,B2,...,Bn(Maybe the two sequences are s...
分类:
其他好文 时间:
2014-05-13 13:45:10
阅读次数:
327
终于找到了解决方法,在下面的文件中添加两行即可:/home/redmine/redmine-2.5.1/public/dispatch.fcgirequire 'rubygems'
require 'fcgi'就这么简单。终于解决了困扰已久的crash问题。...
分类:
其他好文 时间:
2014-05-13 13:33:44
阅读次数:
244