c++ÓëjavaµÄ¹¹Ô캯Êý
½ñÌì¼ÌÐøѧϰjavaºÍandroidƽ̨ javaµÄѧϰËãÊDz¹³ä£¬ÒòΪûÓÐjava»ù´¡Ò²×ö²»³öʲô¶«Î÷À´
½ñÌì¿´µ½javaÓÃthis¹Ø¼ü×ÖÀ´ÖØÔع¹Ôì·½·¨£¬ÔÚÕâÀï×ö¸ö±Ê¼Çclass a_sample{
public int x,y.z;
a_sample(int x){
this.x=x;
}
a_sample(int x,int y){
this(x);
this.y=y;
}
a_sample(int x,int y,int z){
this(x);
this(y);
this.z=z;
}
}
Õâ¸ö·½·¨±È½ÏºÃÓã¡£¡×¢ÒâÒ»¶¨ÊÇÔÚµÚÒ»¾ä
¿´µ½thisÓÖ¸´Ï°ÁËÒ»ÏÂc++ÀïÃæµÄthisÖ¸Õë
ĬдһÏÂgccµÄ²ÎÊýÓ÷¨
Ö÷Îļþmain.c ¶¯Ì¬¿â´úÂëÎļþhello.c Í·Îļþhello.h
¶¯Ì¬¿âÎļþÉú³É¶¯Ì¬¿â gcc -shared hello.c -o libhello.so
Ö÷ÎļþµÄ±àÒë gcc main.c -lhello -L. -o main
(ÓÃcygwin .dll£¬main.c hello.hÊÇÔÚͬһĿ¼ÏÂ-LÊÇ·¾¶)
sqliteº¯Êý
sqlite3_exec(
sqlite3 *,
const char *,
int (*callback)(void*,int,char**,char**),
char **error_msg
)
callbackµÄ²ÎÊý
µÚÒ»¸öûÓÃ
µÚ¶þ¸öÁÐÊý
µÚÈý¸öchar **µÄ×Ö·û´®Êý×é ÐÐÊý¾Ý¼¯ºÏ
µÚËĸö ÁÐÃû
callback»á±»µ÷Óöà´Î ÖªµÀËùÓÐÐб»´òÓ¡Íê
ÆäËûµÄÇé¿ö»¹ÔÚÑо¿
Ïà¹ØÎĵµ£º
·if ((ICO2 = getInitParameter("ICO2")) == null)
ICO2 = "images/commend.gif";
·ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) ctx.get(ServletActionContext.HTTP_REQUEST); ......
¼øÓÚÍøÉ϶ÔJavaµÄ¶ÑÕ»Çø·Ö£¬ÖÚ˵·×ç¡£¬ÓеİÑC++µÄ¶ÑÕ»Ò²»ì½øÀ´£¬ÓеÄûÓзÖÇåStack£¬HeapµÄÖÐÎÄ·Ò룬¸ãµÃÎÒ°ÑStackµ±×÷¶Ñ£¬Heapµ±×÷Õ»£¬»ìÂÒÁË£¡×òÌì²Î¼ÓÒ»ÍâÆóµÄ±ÊÊÔ£¬Ñ¡ÔñÓ¢ÎÄ´ð°¸Ê±£¬Ñ¡´íÁË£¬ÖªµÀ´ð°¸ÊǶѣ¬È´Ñ¡ÔñÁËStack£¡½ñÌ죬¾ö¶¨°ÑÁ½ÕßÇø·ÖÇå³þ£¡
&nbs ......
1. ÑéÖ¤Âë(2)
dsnaValidateCode.jar
dsnaValidateCode_src.rar
ValidateCode.java ÑéÖ¤ÂëÉú³ÉÀà
Java´úÂë
package cn.dsna.util.images;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;   ......
Ìù¶Î´úÂë,ÓÐÉÙÐí×¢ÊÍ:
package ibees;
import java.util.Arrays;
public class BinarySearch {
/**
* @param args
*/
public static void main(String[] args) {
double[] src = new double[]{1.3,9.9,10.89,12.89,89.0};
System.out.println(new BinarySearch().binarySearch(src, 89.0));
}
......
µ±Á½¸ö½ø³ÌÔÚ½øÐÐÔ¶³ÌͨÐÅʱ£¬±Ë´Ë¿ÉÒÔ·¢Ë͸÷ÖÖÀàÐ͵ÄÊý¾Ý¡£ÎÞÂÛÊǺÎÖÖÀàÐ͵ÄÊý¾Ý£¬¶¼»áÒÔ¶þ½øÖÆÐòÁеÄÐÎʽÔÚÍøÂçÉÏ´«ËÍ¡£·¢ËÍ·½ÐèÒª°ÑÕâ¸öJava¶ÔÏóת»»Îª×Ö½ÚÐòÁУ¬²ÅÄÜÔÚÍøÂçÉÏ´«ËÍ£»½ÓÊÕ·½ÔòÐèÒª°Ñ×Ö½ÚÐòÁÐÔÙ»Ö¸´ÎªJava¶ÔÏó¡£
¡¡¡¡°ÑJava¶ÔÏóת»»Îª×Ö½ÚÐòÁеĹý³Ì³ÆΪ¶ÔÏóµÄÐòÁл¯¡£
¡¡¡¡°Ñ×Ö½ÚÐòÁлָ´ÎªJava¶ÔÏóµÄ¹ ......