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»á±»µ÷Óöà´Î ÖªµÀËùÓÐÐб»´òÓ¡Íê
ÆäËûµÄÇé¿ö»¹ÔÚÑо¿
Ïà¹ØÎĵµ£º
SQL×¢ÈëÊÇ×î³£¼ûµÄ¹¥»÷·½Ê½Ö®Ò»,Ëü²»ÊÇÀûÓòÙ×÷ϵͳ»òÆäËüϵͳµÄ©¶´À´ÊµÏÖ¹¥»÷µÄ,¶øÊdzÌÐòÔ±ÒòΪûÓÐ×öºÃÅжÏ,±»²»·¨
Óû§×êÁËSQLµÄ¿Õ×Ó,ÏÂÃæÎÒÃÇÏÈÀ´¿´ÏÂʲôÊÇSQL×¢Èë:
±ÈÈçÔÚÒ»¸öµÇ½½çÃæ,ÒªÇóÓû§ÊäÈëÓû§ÃûºÍÃÜÂë:
& ......
***´ËÌâÒÔ¿¼²ì»ù´¡Îª×¼,±±¾©µÄ±ÊÊÔÌâ,¿ÉÄÜÓÐÈË×ö¹ý
Ìâ:дһ¸ö³ÌÐò£¬½âÎöÈçϸñʽµÄ×Ö·û´®£¬²¢½«½âÎöµÄÊý×ÖÐòÁдòÓ¡³öÀ´¡£
×Ö·û´®¸ñʽ¾ÙÀý£º -1~2, 3~3, 5~10, 7~15x3
~ ´ú±íÊý×ֵķ¶Î§£¬ -1~2 ´ú±í´Ó-1¿ªÊ¼µ½2Ö®¼äµÄËùÓÐÊý×Ö¡£ 3~3 ´ú±í´Ó3¿ªÊ¼µ½3µÄËùÓÐÊý×Ö£¬Ò²¾ÍÊÇ3
7~15x3´ú ......
1.ÐÞ¸ÄÏîÄ¿µÄ.projectÎļþ£¬±£´æ£¬Ë¢Ð¹¤³Ì¡£
ÔÚ<natures>
…
</natures>
Ö®¼äÌí¼ÓÏÂÁÐÈýÐÐÅäÖÃ
<nature>org.eclipse.wst.common.project.facet.core.nature</n ......
µ±Á½¸ö½ø³ÌÔÚ½øÐÐÔ¶³ÌͨÐÅʱ£¬±Ë´Ë¿ÉÒÔ·¢Ë͸÷ÖÖÀàÐ͵ÄÊý¾Ý¡£ÎÞÂÛÊǺÎÖÖÀàÐ͵ÄÊý¾Ý£¬¶¼»áÒÔ¶þ½øÖÆÐòÁеÄÐÎʽÔÚÍøÂçÉÏ´«ËÍ¡£·¢ËÍ·½ÐèÒª°ÑÕâ¸öJava¶ÔÏóת»»Îª×Ö½ÚÐòÁУ¬²ÅÄÜÔÚÍøÂçÉÏ´«ËÍ£»½ÓÊÕ·½ÔòÐèÒª°Ñ×Ö½ÚÐòÁÐÔÙ»Ö¸´ÎªJava¶ÔÏó¡£
¡¡¡¡°ÑJava¶ÔÏóת»»Îª×Ö½ÚÐòÁеĹý³Ì³ÆΪ¶ÔÏóµÄÐòÁл¯¡£
¡¡¡¡°Ñ×Ö½ÚÐòÁлָ´ÎªJava¶ÔÏóµÄ¹ ......
btraceÊÇsunÍƳöµÄÒ»¿îjavaÐÔÄܼà¿Ø¹¤¾ß£¬ÀûÓÃjava agent ºÍ jvm attach¼¼Êõ£¬¿ÉÒÔ²»Í£»úµÄÇé¿öϼà¿ØÏßÉÏÇé¿ö£¬²¢ÇÒ×öµ½×îÉÙµÄÇÖÈ룬ռÓÃ×îÉÙµÄϵͳ×ÊÔ´¡£
Ïêϸ¼û¹Ù·½Îĵµ
ÁíÍâbtraceÓкÜÑϸñµÄÏÞÖÆ£¬±ÈÈçÆ´½Ó×Ö·û´®¡¢Ñ»·¡¢µÝ¹é¡¢ÒÔ¼°ÎÒÃÇƽʱ¾³£ÓõÄһЩ·½·¨¶¼²»¿ÉÒÔÓã¬ËûÓÐËû×Ô¼º×¨ÃŵÄÀà¿â¡£
btrace»¹ÌṩÁËVi ......