首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
/**迭代多维数组*/
    public static void PrintArry(int[][] arr){
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+"\t");
            }
            System.out.println();
        }
    }
阅读全部 | chtml小兵 贴于 2012年5月16日 19:55     hide bbsi
package ymy.day3;
/**
 * 这个类的功能是一个猜数游戏
 * (1)系统随机产生数据
 * (2)从终端输入数据跟产生数据进行比对
 * (3)大:过大。小:过小。正确:正确
 * (4)实现得分评价
 * (5)只有10次输入机会
 * (6)游戏结束提示是否重来
 * */


......................
阅读全部 | chtml小兵 贴于 2012年5月16日 19:54     hide bbsi
//输出*矩形
        
        char sp=' ';
        char ff='*';
        
        for (int i = 1; i <= 200; i++) {
            if(i%2!=0){
                System.out.print(ff);
            }else{
                System.out.print(sp);
            }
            if(i%20==0){
......................
阅读全部 | chtml小兵 贴于 2012年5月16日 19:53     hide bbsi
/**9*9乘法表*/
public class Mutilp {
//    记住个技巧,用ALT+/是将本行注释的作用
    public static void main(String args[]){
        for(int i=1;i<=9;i++){
            for(int j=1;j<=i;j++){
                System.out.print(j+"*"+i+"="+j*i+"\t");
                if(i==j) System.out.println();
            }
        }
    }
}
阅读全部 | chtml小兵 贴于 2012年5月16日 19:51     hide bbsi
public class Com {
    
    public static void main(String[] args) {
        
        //求500以内的所有完备数
        
        int scope=500;
        //扩展:可以算出指定范围内的
        if(args.length==1){
            scope=Integer.parseInt(args[0]);
        }else{
            System.out.print("您未输入任何信息");
......................
阅读全部 | chtml小兵 贴于 2012年5月16日 19:47     hide bbsi
KMP算法 就解???
阅读全部 | 春馨梦 贴于 2012年5月14日 21:58     hide bbsi
<script>
Object.prototype.changdu = function(){
    return this.length;
}
alert('xxx'.changdu());
</script>
阅读全部 | 静夜思 贴于 2012年5月7日 13:39     hide bbsi
import java.awt.*;
import java.awt.event.*;
public class Calculator extends WindowAdapter implements ActionListener{
private double result=0,data1=0,radixPointDepth=1;
private boolean radixPointIndicate=false,resultIndicate=false;
private char prec='+';
private Frame f;
private TextField tf;
private Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20;
private Panel p;
private String lastCommand;// 保存+,-,*,/,=命令 
private boolean start;// 判断是否为数字的开始 
......................
阅读全部 | z12010243008 贴于 2012年5月7日 11:03     hide bbsi
哪位高人有wincimage.h、winparams.h和winproto.h的源代码,可否共享下,因为我编程急需这些,非常感谢!
邮箱651707479@qq.com
阅读全部 | ty651707479 贴于 2012年5月6日 13:51     hide bbsi
LShift    proc     buf,len
            pushad
            local    newhbit
            local    oldhbit
            local    i
            mov        esi,buf
            mov        al,byte ptr [esi]
            movzx    ax,al
            div        80h            ;16位除法,al存商,ah存余数
            movzx    eax,al
            mov        oldbit,eax
            mov        ecx,len
......................
阅读全部 | pklpklong007 贴于 2012年4月28日 13:03     hide bbsi
上一页 294 295 296 297 298 299 300 301 302 303 下一页