码迷,mamicode.com
首页 >  
搜索关键字:maybe not public    ( 83099个结果
用基类接品,泛型抽象类,抽象方法实现代码复用
1、定义一个基类接口public interface IBaseEntity{/// 最后操作人编码 string LastOperatorCode { get; set; }/// 最后操作人 string LastOperator { get; set; }/// 最后操作时间 DateT...
分类:其他好文   时间:2014-05-01 08:14:17    阅读次数:267
[leetcode] Minimum Path Sum
思路很简单,就是存储之前运算的结果,然后递归class Solution {public: int** dp; int get_min_sum(vector > &grid, int m, int n) { if (dp[m][n] != -1) ...
分类:其他好文   时间:2014-05-01 07:54:47    阅读次数:330
装饰者模式
首先:我们建立一个超类:Clothes: public abstract class Clothes { public string Look = "beautiful"; public string Getlook() { ...
分类:其他好文   时间:2014-05-01 05:33:23    阅读次数:231
DirectDraw 直接显示RGB图象的最简单实现
来自:#include "DDraw.h"class CDDraw{public:void CleanUp();void DrawDIB(BITMAPINFOHEADER* pBI,char* pData,RECT*rt);BOOL Init(HWND hWnd,int nWidth,int nHe...
分类:其他好文   时间:2014-05-01 05:25:10    阅读次数:407
关于用POI和EXCEL交互的问题
废话不多说,直接通过例子来说明POI的使用:1.一个创建excel并写入数据的小例子,参照网上的一个例子:public class CreateXL { /** * @param args */ public static String outputFile="D:\\t...
分类:其他好文   时间:2014-05-01 05:18:04    阅读次数:426
Socket通信中的 BeginReceive与EndReceive
BeginReceive 与endReceive 必须成对出现,如果BeginReceive没有及时调用endReceive,可能会出现数据被从buffer中读取二次,如果在下面这行代码下面加入别的代码就会出现被处理二次的结果 如下public void BeginReceive(SessionLi...
分类:其他好文   时间:2014-05-01 04:27:44    阅读次数:428
java中基于timer计时器的图片播放
所有注释放在代码中...(图片的加入使用硬代码)package com.sxt.jtime;import java.awt.BorderLayout;public class Itimer_test extends JFrame { private JPanel contentPane; ...
分类:编程语言   时间:2014-05-01 04:01:01    阅读次数:546
SCJP_104——题目分析(1)
1.1) public class ReturnIt{2) returnType methodA(byte x, double y){3) return (short)x/y*2;4) }5) }what is valid returnType for methodA in line 2?这...
分类:其他好文   时间:2014-05-01 03:58:57    阅读次数:330
快速排序
package algorithm.sort;public class QuickSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); ...
分类:其他好文   时间:2014-05-01 03:33:20    阅读次数:330
SCJP_104——题目分析(2)
3.public class IfTest{ public static void main(String args[]){ int x=3; int y=1; if(x=y) System.out.println("Not eq...
分类:其他好文   时间:2014-05-01 03:32:18    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!