Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓïÑÔ»ì±àÖ®cµ÷ÓÃjava

¾­¹ýÑéÖ¤¿ÉÒÔʵÏÖ£¬ÏȽ«ÊµÏÖ´úÂëÌù³ö£¬ÒÔ±¸ÒÔºóʹÓá£
±¾ÎÄĬÈÏÄãµÄjava¿ª·¢»·¾³ÒѾ­°²×°³É¹¦£¬²¢ÇÒ¶ÔÓÚjavaÓïÑÔºÍc++ÓïÑÔÓйýÁ˽⡣
±àд²âÊÔÓÃÀࣺDemo.java
´úÂëÈçÏ£º
public class Demo
{
 public static int COUNT = 8;
 
 private String msg;
 private int[] counts;
 
 public Demo ()
 {
  this ("default constructor");
 }
 public Demo (String msg)
 {
  this.msg = msg;
  this.counts = null;
 }
 public String getMessage ()
 {
  return msg;
 }
 
 public static String getHelloWorld ()
 {
  return "hello world!";
 }
 public String append (String str, int i)
 {
  return str + i;
 }
 public int[] getCounts ()
 {
  return counts;
 }
 public void setCounts (int[] counts)
 {
  this.counts = counts;
 }
 public void throwExcp () throws IllegalAccessException
 {
  throw new IllegalAccessException ("exception occurs");
 }
}
ÓÉÓÚÔÚjavaÖÐÄܹ»Ê¹Óú¯ÊýÖØÔØ£¬ËùÒÔÔÚcÓïÑÔÖе÷ÓÃjavaÊÇÐèҪȷ¶¨¾¿¾¹Êǵ÷ÓõÄÊÇÄǸöº¯Êý¡£ÔÚjdkÖÐÌṩÁËjavap³ÌÐò¡£
Javap½«Ò»¸öÀàºÍËüµÄ·½·¨µÄһЩת´¢ÐÅÏ¢Êä³öµ½±ê×¼Êä³ö¡£¸Ã¹¤¾ß²»°Ñ´úÂë·´±àÒëΪjavaÔ´´úÂ룬µ«ÊÇËü»á°Ñ×Ö½Ú´úÂë·´»ã±à³ÉΪÓÉJavaÐéÄâ»ú¹æ·¶¶¨ÒåµÄ×Ö½Ú´úÂëÖ¸Áî¡£ÆäÓ÷¨ÈçÏ£º
-l     Êä³ö±¾µØ±äÁ¿±í
-public    Êä³ö¹«ÓÃÀàÃûºÍ·½·¨Ãû
-protected   Êä³öÀàµÄÊܱ£»¤·½·¨
-private   Êä³öÀàµÄËÆÓз½·¨
-verbose  Êä³öÀàµÄÕ»µÄÐÅÏ¢ºÍ±¾µØ·½·¨µÄ¸öÊý
»Øµ½Ô­À´Ö÷Ì⣺
javap -s -p Demo
ÎÞ·¨ÉÏ´«Í¼Æ¬^_^ÏëÏóһϰɡ£ÔÚÊä³öÖÐÕÒµ½ÈçϵÄÓï¾ä£º
public java.lang.String append(java.lang.String, int);
  Signature: (Ljava/lang/String;I)Ljava/lang/String;
ÔÚvs2008ÖÐн¨Ò»¸ö¹¤³Ì£¨win32 console application£©£¬ÅäÖù¤³ÌÊôÐÔ£º½«jdkÖÐincludeĿ¼ÏµÄÍ·Îļþ¼ÓÈëµ½¹¤³ÌÖУ¬²¢½«¸ÃÎļÐϵÄwin32×ÓĿ¼ÏµÄheader fileͬÑù¼ÓÈëµ½¹¤³ÌÖС£
н¨main.cpp
´úÂëÈçÏ£º
#include


Ïà¹ØÎĵµ£º

¹ØÓÚC/C++ ±í´ïʽÇóֵ˳Ðò 䶨Òå


±í´ïʽµÄ¸±×÷ÓÃ
ÔËËã·ûµÄÓÅÏȼ¶Óë½áºÏÐԹ涨Á˱í´ïʽÖÐÏàÁÚÁ½¸öÔËËã·ûµÄÔËËã´ÎÐò£¬µ«¶ÔÓÚË«Ä¿
ÔËËãµÄ²Ù×÷Êý£¬C++ûÓй涨ËûÃǵļÆËã´ÎÐò¡£ÀýÈ磬¶ÔÓÚ±í´ïʽ£º
exp1 + exp2;
ÏȼÆËã exp1 »¹ÊÇ exp2£¿²»Í¬µÄ±àÒëÆ÷Óв»Í¬µÄ×ö·¨¡£
ÔÚÊýѧÉÏ£¬¶ÔÓÚË«Ä¿ÔËËã·û£¬²»ÂÛÏȼÆËãÄÄÒ»¸ö²Ù×÷Êý£¬ÒªÇó×îÖÕ¼ÆËã½á¹ûÒ»Ñù¡£
ÔÚ C ......

c/c++ Êý×Öת³É×Ö·û´®, ×Ö·û´®×ª³ÉÊý×Ö

Êý×Öת×Ö·û´®£º
ÓÃC++µÄstreanstream:
#include <sstream>
#Include <string>
string num2str(double i)
...{
        stringstream ss;
        ss<<i;
        return ss.str();
......

¾­µäC/C++ÃæÊÔÌ⣨Èý£©2

32)
¡¡¡¡int main()
¡¡¡¡{
¡¡¡¡¡¡int x=3;
¡¡¡¡¡¡printf("%d",x);
¡¡¡¡¡¡return 1;
¡¡¡¡}
¡¡¡¡Îʺ¯Êý¼ÈÈ»²»»á±»ÆäËüº¯Êýµ÷Óã¬ÎªÊ²Ã´Òª·µ»Ø1£¿
¡¡¡¡mianÖУ¬c±ê×¼ÈÏΪ0±íʾ³É¹¦£¬·Ç0±íʾ´íÎó¡£¾ßÌåµÄÖµÊÇijÖоßÌå³ö´íÐÅÏ¢
33) Òª¶Ô¾ø¶ÔµØÖ·0x100000¸³Öµ£¬ÎÒÃÇ¿ÉÒÔÓÃ(unsigned int*)0x100 ......

¾­µäC/C++ÃæÊÔÌ⣨Î壩

ÄÜ£¬¾Ö²¿»áÆÁ±ÎÈ«¾Ö¡£ÒªÓÃÈ«¾Ö±äÁ¿£¬ÐèҪʹÓÃ"::"
¾Ö²¿±äÁ¿¿ÉÒÔÓëÈ«¾Ö±äÁ¿Í¬Ãû£¬ÔÚº¯ÊýÄÚÒýÓÃÕâ¸ö±äÁ¿Ê±£¬»áÓõ½Í¬ÃûµÄ¾Ö²¿±äÁ¿£¬¶ø²»»áÓõ½È«¾Ö±äÁ¿¡£¶ÔÓÚÓÐЩ±àÒëÆ÷¶øÑÔ£¬ÔÚͬһ¸öº¯ÊýÄÚ¿ÉÒÔ¶¨Òå¶à¸öͬÃûµÄ¾Ö²¿±äÁ¿£¬±ÈÈçÔÚÁ½¸öÑ­»·ÌåÄÚ¶¼¶¨ÒåÒ»¸öͬÃûµÄ¾Ö²¿±äÁ¿£¬¶øÄǸö¾Ö²¿±äÁ¿µÄ×÷ÓÃÓò¾ÍÔÚÄǸöÑ­»·ÌåÄÚ¡£
2¡¢ÈçºÎÒýÓ ......

Pro*C SQLDA ½á¹¹Ìå

--Õª×Ô ¡¶Oracle Pro*C ³ÌÐò¿ª·¢¡·     --Create/Modify Email£ºxingchengli@gmail.com
SQLDA µÄ½á¹¹ÈçÏ£º
struct SQLDA
{
long N; /* Descriptor size in number of entries */
char **V; Ptr to Arr of addresses of main variables */
long *L; /* Ptr to Arr of lengths of buffe ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ