¸÷λ¿ÉÒÔÍƼö¼¸±¾Ñ§Ï°CÓïÑÔ±à³ÌµÄÊé¼®Âð£¿
c++ primer
C³ÌÐòÉè¼Æ £¨µÚÈý°æ£© Ç廪´óѧ³ö°æÉç Ì·ºÆÇ¿
C³ÌÐòÉè¼ÆÓïÑÔ £¨µÚ¶þ°æ ~а棩 »úе¹¤Òµ³ö°æÉç Brian¡¡£×£®£Ë£å£ò£î£é£ç£è£á£î
תÔرðÈ˵ÄÊéÆÀ£¬¿´ÏÂ
¡¶Cר¼Ò±à³Ì¡·:ÎÒ»¹Ã»ÏîÄ¿¾Ñéʱ¾Í¿´ÁË£¬µ«³ýÁËÉÙÊý¼¸Õ¿´µÃ¹ýÈ¥£¬µ«ºÜ¶àʱºòÊÇÔÚ¿´¹ÊÊ¡£ Õâ±¾Êé ......
JAVAÔõÑùµ÷Óô¿C/C++дºÃµÄ³ÌÐòÀïµÄ·½·¨£¿
native·½·¨
×Ô¼º²éÏÂJNI
JAVAµÄ±¾µØ·½·¨£¬Ð´Ò»¸öÀ࣬ÉùÃ÷Ò»¸önative·½·¨£¬È»ºóÓÃÒ»¸ö¹¤¾ßÈ¥Éú³ÉÍ·Îļþ£¬È»ºóдC++³ÌÐò£¬µ¼Èë¸ÃÍ·Îļþ£¬²¢ÊµÏÖÆä·½·¨£¬È»ºó±àÒë³ÉDLLÎļþ£¬ÔÙÔÚ֮ǰµÄÀàÀïÃæµ¼Èë¸ÃDLL¿â£¬OK
Ö±½ÓÓÃJNI±È½ÏÂé·³£¬ËÑË÷JNA
ÒýÓÃ
JAVAµÄ±¾µØ·½·¨£¬Ð´Ò»¸öÀ࣠......
ÓÐÄÇЩºÃµÄ¿ª·¢»·¾³£¬¾ßÌåÔõô°²×°µÄ¡£
1. ±àÒëÆ÷+Îı¾±à¼Æ÷·½°¸
gcc + vim
gcc + emacs
2. IDE·½°¸
eclipse +£ã£ä£ô
¡¡ kdevelop
Linux×Ô´øÓÐgcc±àÒëÆ÷£¬ºÍwindowsϵÄVC++Ò»ÑùµÄ±àÒëÆ÷¡£µ«ÔÚLinuxϵıàÒëÆðͼÐλ¯½çÃæ²»ÏñVC£¬Ëü¸üÏñ¿ØÖÆ̨ÄÇÖÖ¡£
gcc+gdb+gmake+kdevelop
Àïà ......
C/C++ code:
struct timeval timeout;
fd_set writefds;
const char* optival;
int nByte = MAX_REV_SIZE;
writefds.fd_count = 1;
writefds.fd_array[0] = m_sock;
timeout.tv_sec = ......
ÔÚlinuxÀïµÄstdio.hÀïÊÇÕâô¶¨ÒåµÄfpos_t:
typedef _G_fpos64_t fpos_t ;
ÔÚwindowsÀïÖ±½ÓÊÇÓÃlong long ¶¨ÒåµÄfpos_t, ËùÒÔÎÒÖ±½Ó¾Í¿ÉÒÔÓÃint±äÁ¿¸øËü¸³Öµ£¬Ò²ÄܺÍint,long long Ð͵ıäÁ¿Ïà¼Ó¼õ£¬µ«ÊÇÔÚlinuxÀï¾Í±àÒë³ö´íÁË
ÎÒÕÒ²»µ½Õâ¸öÀàÐÍÊÇÔõô¶¨ÒåµÄ£¬Çë¸ßÈ˸æËßϳýÁËÓÃfgetpos()ÍâÔõô¸ø_G_fpos64_tÕâÖÖÀàÐ͵ı ......
ÎÒÃǸã»ã±àµÄ×î¿´²»ÆðÄãÃÇÕâЩ¸ãCºÍC++µÄÈËÁË£¬Ò»µã¶¼²»µ×²ã£¬CAOÄãÃÇ´óÒ¯µÄ£¬¾ÍOO¶øÑÔC++±ÈÆðJava²îÔ¶ÁË£¬ÂÛЧÂÊÓֱȻã±à²îÔ¶ÁË£¬ÄãÃÇÕâЩ¸ãCºÍC++µÄ¶¼Ö»Äܹ»¸ø±¾´óÒ¯Ìò½Åֺͷ¡£¹þ¹þ
ÎÒÃÇ01010101µÄ×î¿´²»ÆðÄãÃÇÕâЩ¸ã»ã±àµÄÈËÁË£¬Ò»µã¶¼²»µ×²ã£¬CAOÄãÃÇ´óÒ¯µÄ£¬¾ÍOO¶øÑÔ»ã±à±ÈÆðJava²îÔ¶ÁË£¬ÂÛЧÂÊÓÖ±È01010101²îÔ¶ÁË£¬Ä ......