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

C »ã±à»ìºÏ±à³Ì

As is Known to us,the function Main is the entry point of all programs.Therefore, we are usually neglecting all that we don't do,which makes us not understanding it more clearly.Now there is a sample arm program which will provide something that opration system usually do.
asm:
    IMPORT main
    area test,CODE,READONLY
    ENTRY
    bl start
start
    bl main
C:
#define rGPBCON    (*(volatile unsigned *)0x56000010) //Port B control
#define rGPBDAT    (*(volatile unsigned *)0x56000014) //Port B data
#define rGPBUP     (*(volatile unsigned *)0x56000018) //Pull-up control B
int main(int argc, char *argv[])
{
 unsigned int temp = 0x0e;
 rGPBCON = 0x00555555;
 rGPBUP = 0xffff;
 rGPBDAT = 0XE1F; 
 return 0;
}
The code very sample,but it is very useful.


Ïà¹ØÎĵµ£º

C Öеı䳤Êý×é VLA

ż¶û¿´µ½ C Primer Plus Öн²µ½±ä³¤Êý×é(VLA)£¬ºÜÓÐÒâ˼¡£
×÷ÕßÔÚËûµÄ C Primer Plus ºÍ C++ Primer Plus ÀïÃæ¶¼Ã÷È·Ö¸³ö£¬¶¨ÒåÊý×éʱÊý×éµÄÔªËØ¸öÊý±ØÐëÊÇÕûÐͳ£Á¿£¬²»ÄÜÊDZäÁ¿¡£µ«ÊÇÔÚ C Õâ±¾ÊéÀï½²µ½±ä³¤Êý×é VLA£¬ÔÚ C++ ÄDZ¾ÀïÃæÓÖûÓÐÌá¡£²»ÖªµÀΪʲô£¿ÏëÀ´Ò»¶¨ÊÇ VLA ÓÃÆðÀ´ÓÐЩ²»Ì«Ã÷È·µÄµØ·½¡£
ÎÒÊÔ×ÅдÁ˸öС³ ......

ÃÔ¹¬¿ÎÉè ¾ø¶ÔÔ­´´ C°æ

typedef     struct   StackNode
{
    ElemType    data;
    StackNode   *next;
)StackNode, *LinkType;                  &nb ......

CentOS5 no acceptable C compiler found in $PATH

CentOs5°²×°apacheµÄʱºò
#./configure
(ÓÚ¼ì²éϵͳÊÇ·ñÓбàÒëʱËùÐèµÄ¿â£¬ÒÔ¼°¿âµÄ°æ±¾ÊÇ·ñÂú×ã±àÒëµÄÐèÒªµÈ°²×°ËùÐèÒªµÄϵͳÐÅÏ¢¡£ÎªËæºóµÄ±àÒ빤×÷×ö×¼±¸¡£)
Ìáʾ´íÎóÈçÏÂ:£¨Ã»ÓÐGCC±àÒëÆ÷»·¾³£©
checking build system type... i686-pc-linux-gnu
checking host system type.. ......

(ת)C/C++ÖÐʱ¼äº¯ÊýµÄ½éÉÜ

1£®¸ÅÄî
       ÔÚC/C++ÖУ¬¶Ô×Ö·û´®µÄ²Ù×÷ÓкܶàÖµµÃ×¢ÒâµÄÎÊÌ⣬ͬÑù£¬C/C++¶Ôʱ¼äµÄ²Ù×÷Ò²ÓÐÐí¶àÖµµÃ´ó¼Ò×¢ÒâµÄµØ·½¡£×î½ü£¬ÔÚ¼¼ÊõȺÖÐÓкܶàÍøÓÑÒ²¶à´ÎÎʵ½¹ýC++ÓïÑÔÖжÔʱ¼äµÄ²Ù×÷¡¢»ñÈ¡ºÍÏÔʾµÈµÈµÄÎÊÌâ¡£ÏÂÃæ£¬ÔÚÕâÆªÎÄÕÂÖУ¬±ÊÕß½«Ö÷Òª½éÉÜÔÚC/C++ÖÐʱ¼äºÍÈÕÆÚµÄʹÓ÷½·¨.  ......

C µÄ¿ªÊ¼

    C µÄ¿ªÊ¼
 
    2010Äê2ÔÂ10ÈÕ£¬
    ¿ªÊ¼ÔĶÁ¼ÒÀïÓйØ"CÓïÑÔ"µÄ¸÷ÖÖ×ÊÁÏ¡£
    ʹÓà TurboC2.0£¬Å¼¶û¿ÉÄÜÒ²»áÓõ½ Microsoft Visual C++ 6.0¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ