CÓïÑÔȤζ³ÌÐò£¨²»µ½£©°ÙÀý Ö®JavaʵÏÖ
package zzq.main;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
/************************************************************************
* CÓïÑÔȤζ³ÌÐò£¨²»µ½£©°ÙÀý-Ö®JavaʵÏÖ
*
* 0 ¹ÇÍ·ÕÒÁËÆäÖбȽϼòµ¥µÄÓÃJavaʵÏÖÁË
*
* 1 ËûÃÇÍêÈ«¿Éµ¥¶ÀΪƪ£¬µ«¹ÇÍ·ÀÁ£¬ËùÓÐÌâÒ»²¢·¢ÁË¡£
*
* 2 ½â·¨²¢·Ç×îÓÅ£¬¶àÊýÓõÄÇî¾Ù·¨¡£
*
* 3 ÔÌâ¿Éͨ¹ý·½·¨×¢Ê͵ÄÌâºÅ²éѯPDFÎĵµ¡£ÔÙ´ÎΪÀÁµÀǸ
*
* 4 Ö»×öµ½83Ì⣬ÔÒò£º1Õ⼸Ììæ2ºóÃæµÄÐèҪ˼¿¼3ÍíÉÏÐèÒª¸ãÒÕÊõûʱ¼ä
*
* @author lazybone 2010-05-14
*
************************************************************************/
public class JavaFun {
public static void main(String[] args) {
long start = System.currentTimeMillis();
new JavaFun().KaBuLieKe83(3976, 0);
long over = System.currentTimeMillis();
System.out.println("Cost:" + (over - start) + " ms.");
}
/**
* 83¡£¿¨²¼Áп˳£Êý£¬Í¦ºÃÍ棬ʵÏÖÒ»ÏÂ
*/
public void KaBuLieKe83(int n, int count) {
int cha = getTheMaxOrMin(n, 1) - getTheMaxOrMin(n, 0);
System.out.println(count + ":" + getTheMaxOrMin(n, 1) + "-"
+ getTheMaxOrMin(n, 0) + " = " + cha);
count++;
if (n == 6174) {
System.out.println("I did it 6174");
} else {
KaBuLieKe83(cha, count);
}
}
/**
* 80.ÆæÊýƽ·½ºÍ£¨ºÍºóÃ漸¸ö£©¸ù±¾ÎÞ·¨µÃµ½ÑéÖ¤£¬Ö»ÄÜÔÚÓÐÏÞ·¶Î§ÄÚÖ¤Ã÷ÕýÈ·°ÕÁË
*
* ûÓÐ˼¿¼¼ÛÖµ´¿´âÁеÈʽ¡£¹ÊÌø¹ý¡£
*/
/**
* 79¡£Ëæ»úÊýÇóπÔ²ÖÜÂÊ
*/
public void getPaiByRandom79() {
double all = 10000000;
double l = 1000000;
double pai = 0;
double in = 0;
double x = 0, y = 0;
for (int i = 0; i < all; i++) {
x = (Math.random() * l);
y = (Math.random() * l);
if (x * x + y * y < l * l)
in++;
}
pai = (in / all * 4);
System.out.println("Times/All=" + in + "/" + all + " pai~=" + pai);
}
/**
* 76.СÃ÷ÂòÊé
*
* Êä³ö7.9+7.2ʱ»á³öÏÖСβ°Í£¬ÔÒò²»Ã÷£¬ÏÖÔÚ¶ÏÍøÔݲ»É
*/
public voi
Ïà¹ØÎĵµ£º
¡¡1. String.trim()
¡¡¡¡trim()ÊÇÈ¥µôÊ×β¿Õ¸ñ
¡¡¡¡2.str.replace(" ", ""); È¥µôËùÓпոñ£¬°üÀ¨Ê×β¡¢Öмä
¡¡String str = " hell o ";
¡¡¡¡String str2 = str.replaceAll(" ", "");
¡¡¡¡System.out.println(str2);
¡¡¡¡3.»òÕßreplaceAll(" +",""); È¥µôË ......
0
£®ÒýÑÔ
ÔÚChinaITLAB
µ¼Ê¦ÖƸ¨µ¼ÖУ¬±ÊÕß·¢ÏÖÎʵÃ×î¶àµÄÎÊÌâĪ¹ýÓÚ"
ÈçºÎѧϰ±à³Ì£¿Java
¸ÃÈçºÎѧϰ£¿"
¡£ÀàËƵÄÎÊÌâ»Ø´ð¶àÁË£¬ÄÑÃâ»á¸Ð¾õÑá·³£¬¾ÍÃÈÉúÁËдϱ¾ÎĵÄÏë·¨¡£µ½Ê±ºòÔÙÓÐÈËÎÊÆðÀàËƵÄÎÊÌ⣬ÎÒ¿ÉÒÔ¸æËßËû£¨Ëý£©£¬ÇëÄãÈ¥¿´¿´¡¶Java
ѧϰ֮·¡·¡£°Ý¶Á¹ý̨Íå²ÌѧïÞÏÈÉúµÄ¡¶Java
ҹδÃß¡·£¬ÓÐ ......
result love(boy, girl)
{
if( boy.Óз¿() and boy.Óгµ() )
{
boy.set(nothing);
return girl.¼Þ¸ø(boy);
&n ......
ʹÓÃNDK¿ª·¢C/C++ÏîÄ¿¹æÔò
<!-- /* Font Definitions */ @font-face {font-family:ËÎÌå; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;}@font-face {font-family:"\@ËÎÌå&qu ......
Ò»¡¢¿ª·¢»·¾³
1¡¢ windowsXP
2¡¢ mysql 5.0.22
3¡¢ Dev-C++ 4.9.9.2
4¡¢ ÏÂÔØ(mysqlpp-2.3.2-gcc3.4.2-1due.DevPak)
5¡¢ MySQL.DevPak ÏÂÔصØÖ·£º http://downloads.sourceforge.net/dev-cpp/MySQL.DevPak
6¡¢ ÏÂÔØÒÔºóͨ¹ý‘¹¤¾ß[T]’ --> ´ò ......