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

c ÓïÑÔº¯Êý´«²ÎµÄÈýÖÖ·½Ê½¼°¶þ¼¶Ö¸ÕëµÄÀí½â

ÆÕͨ±äÁ¿ÊÇÖ±½Ó´«Öµshow(int a,int b)
Ö¸Õë±äÁ¿´«µÝµØÖ·show(int *a,int *b)
ÒýÓñäÁ¿ÊÇÒþʽ´«µØÖ· 1:int x;void show(int &x)£¬Êµ¼Ê´«µÝµÄÊÇxµÄµØÖ·p£¬µ«ÊǺ¯ÊýÄÚ²¿Ê¹ÓÃxʱ»á×Ô¶¯±ä³É*p
                                 void f(int &x) {x++}; »á±ä³É
                                 void f(int *p) {(*p)++};
                                2:int *x;void show(int &x),ʵ¼ÊÒѾ­¹¹³ÉÁ˶þ¼¶Ö¸Õë¡£
¶Ô¶þ¼¶Ö¸ÕëµÄÉîÈëÀí½â£ºº¯Êý¼äµÄÖ¸ÕëÒýÓûò´«µÝ£¬ÆäʵÖÊÒ²ÊǶԵØÖ·µÄ¿½±´£¬¼´×öÁËÁ˸±±¾·ÅÔÚÒýÓõĺ¯ÊýÀï¡£
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
void jj(int **p1){
    int a=60;
    int *pt;
printf("%d\n",p1);
printf("%d\n",*p1);
printf("%d\n",**p1);
pt=&a;
p1=&pt;
printf("%d\n",p1);
printf("%d\n",*p1);
printf("%d\n",**p1);
}
main(){
int n=5;
int *p=&n;
jj(&p);
printf("%d\n",*p);
}


Ïà¹ØÎĵµ£º

ARM ±ê×¼C/C++ ÔËÐÐʱ¿â


1.
ÔËÐÐʱ¿âµÄ·¾¶
Ö¸¶¨·½Ê½£º
£¨1£©      
Á¬½ÓÑ¡Ïî
–libpath
£¨2£©      
»·¾³±äÁ¿
ARMLIB
ÓÅÏȼ¶£º
      
libpath
¸ßÓÚ
ARMLIB
±»Ö¸¶¨µÄ·¾¶£º
      
°üº¬
a ......

UbuntuÖÐNetBeans C/C++ÅäÖᢱàÒë

ϵͳ»·¾³£ºUbuntu 9.04
Èí¼þ»·¾³£ºNetBeans 6.7.1 C/C++ ¡¢JDK1.6.0_16
±¾´ÎÄ¿µÄ£ºÍê³ÉNetBeans 6.7.1 C/C++ µÄÅäÖù¤×÷¡¢±àÒë²âÊÔ¼°¶ÔÖÐÎÄÖ§³Ö
      Ê×ÏÈ´Ó¹ÙÍøÉÏÏÂÔØ×îаæµÄNetbeans Ñ¡ÔñC/C++¹¤×÷̨ÏÂÔØ[µã»÷½øÈë]£¬µ¯³öµÄÐÂÍøÒ³½«»á×Ô¶¯ÏÂÔØ£¬ÈçÏÂͼ£º
ÔÚ½øÐа²×°Ö®Ç°£¬ÎÒÃÇÏÈ°²×°JDK£¬ ......

ǶÈëʽC/C++ÃæÊÔÌâ»ã×ܽâ´ð(II)

 (±¾ÎÄÔ´×Ôhttp://www.weste.net/2006/2-20/13432127659.html )¡¡¡¡
Ðí¶àÃæÊÔÌâ¿´ËƼòµ¥£¬È´ÐèÒªÉîºñµÄ»ù±¾¹¦²ÅÄܸø³öÍêÃÀµÄ½â´ð¡£ÆóÒµÒªÇóÃæÊÔÕßдһ¸ö×î¼òµ¥µÄstrcpyº¯Êý¶¼¿É¿´³öÃæÊÔÕßÔÚ¼¼ÊõÉϾ¿¾¹´ïµ½ÁËÔõÑùµÄ³Ì¶È£¬ÎÒÃÇÄÜÕæÕýдºÃÒ»¸östrcpyº¯ÊýÂð£¿ÎÒÃǶ¼¾õµÃ×Ô¼ºÄÜ£¬¿ÉÊÇÎÒÃÇд³öµÄstrcpyºÜ¿ÉÄÜÖ»ÄÜÄõ½10·ÖÖÐ ......

emacs ¿ì½Ý¼ü£¨°üÀ¨C£¯C++ģʽ£©

·ûºÅ
      C-  Òâ˼ÊÇ°´×¡ Ctrol ¼ü
M-   ÒâÖ¸ Meta ¼ü (¼üÅÌÉÏÈôÎÞMeta ¼ü£¬Ôò¿ÉÒÔALT ESC ¼üÀ´È¡¶ø´úÖ®)
DEL  ÒâÖ¸Í˸ñ¼ü (²»ÊÇ É¾³ý(Delete) key)
RET  ÒâÖ¸»Ø³µ¼ü
SPC  ÒâÖ¸¿Õ¸ñ¼ü
ESC  ÒâÖ¸Escape¼ü
TAB  ÒâÖ¸Tab¼ü
Ïñ "C-M-" (or "M-C") ......

linux C ±à³Ì»·¾³µÄ×齨

ÓüÇʱ¾Ð´C³ÌÐò£¬²¢±àÒë¡£    ¸Õ×°ºÃµÄϵͳ
ÖÐÒѾ­ÓÐGCCÁË£¬µ«ÊÇÕâ¸öGCCʲôÎļþ¶¼²»ÄܱàÒ룬ÒòΪûÓÐһЩ±ØÐëµÄÍ·Îļþ£¬ËùÒÔÒª°²×°build-essentialÕâ¸öÈí¼þ
°ü£¬°²×°ÁËÕâ¸ö°ü»á×Ô¶¯°²×°ÉÏg++,libc6-dev,linux
-libc-dev,libstdc++6-4.1-devµÈһЩ±ØÐëµÄÈí¼þºÍÍ·ÎļþµÄ¿â¡£
    ¿ÉÒÔÔÚÐÂÁ¢µÃÀïÃæË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ