Linux C ʹÓÃÖ¸Õë·ÃÎʳÉÔ±
ÔÚLinuxÓÃc±à³Ì£¬ºÜ¶àʱºò¶¼»áÅöµ½½á¹¹ÌåÕâ¸ö¸ÅÄÓÈÆäÊÇʹÓÃÖ¸Õë·ÃÎʽṹÌå³ÉÔ±¡££¨ÏÂÃæµÄÎÄ×Ö½éÉÜ£¬Çë²Î¿¼´úÂëÀí½â£©
1. ʹÓÃÒ»¸öÐÂÔËËã·û£º->,Õâ¸öÔËËã·ûÓÐÒ»¸öÁ¬½ÓºÅ£¨-£©ºó¸úÒ»¸ö´óÓÚ·ûºÅ£¨>£©×é³É
struct guy *him;
him = &fellow[0];
him->income
2. Èç¹û him = &fellow[0] £¬ÄÇô *him = fellow[0] , &ºÍ*ÊÇÒ»¶Ô»¥ÄæµÄÔËËã·û£¬Òò´Ë¿É×öÒÔÏ´úÌ棺
fellow[0].income == (*him).income
±ØÐëÓÐÔ²À¨ºÅ£¬ÒòΪ£¬ÔËËã·û±È*µÄÓÅÏȼ¶¸ü¸ß¡£
×ÜÖ®£¬ºóÃæ¸ú->ÔËËã·ûµÄ½á¹¹Ö¸ÕëºÍºó¸ú . (µã)ÔËËã·ûµÄ½á¹¹ÃûÊÇÒ»ÑùµÄ£¬Èç¹ûhimÊÇÖ¸ÏòÃûΪbarneyµÄguyÀàÐͽṹµÄÖ¸Õ룬ÔòÏÂÁбí´ïʽÊǵȼ۵ģº
barney.income == (*him).income == him->income // ¼ÙÉè him = &barney
´úÂ룺
1 #include <stdio.h>
2 #define LEN 20
3
4 struct names{
5 char first[LEN];
8
11 char favfood[LEN];
12 char job[LEN];
13 float income;
14
15 };
16
17
18 main(){
19
20 struct guy fellow[2] = {
21
22 {{"Ewen","Villard"},"grilled salmon","personality coach",58112.00},
23 {{"Rodney","Swillbelly"},"tripe","tabloid editor",232400.00}
24 };
25
26 struct guy *him;
27 printf("address #1 : %p #2 :
Ïà¹ØÎĵµ£º
du -sh xmldb/
du -sm * | sort -n //ͳ¼Æµ±Ç°Ä¿Â¼´óС ²¢°²´óС ÅÅÐò
du -sk * | sort -n
du -sk * | grep guojf //¿´Ò»¸öÈ˵ĴóС
du -m | cut -d "/" -f 2 //¿´µÚ¶þ¸ö/ ×Ö·ûÇ°µÄÎÄ×Ö
²é¿´´ËÎļþ¼Ð ......
CPU£ºs3c2410
OS£ºLinux Kernel 2.6.30.4
×î½ü¸Õ×öÍêµÄǶÈëʽ¼üÅ̵ÄÇý¶¯£¬ÓÉÓÚ³õ´Î½Ó´¥£¬×ܽáһϡ£
Ê×Ïȼòµ¥ËµËµÕâ¸ö¼üÅ̵ÄʵÏÖÔÀí£¬IIC×ÜÏß¹¤×÷ÔÀíû±ØÒª·Ï»°£¬s3c2410µÄÊÖ²áÖн²µÄºÜÃ÷°×¡£Ó²¼þ·½ÃæÕâ¸ö¼üÅÌͨ¹ýÒ»¸öAVRµ¥Æ¬»ú£¨ATMEGA48£©½ÓÔÚIIC×ÜÏßÉÏ£¬Ò²¾ÍÊÇ˵£¬Ö±½ÓÓëIIC×ÜÏßÁ´½ÓµÄÉ豸²¢²»ÊÇÎÒÃÇÓõļüÅÌ£¬¶øÊÇ ......
תÔØ×Ô
http://www.linux-wiki.cn/index.php/Linux%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84
LinuxĿ¼½á¹¹
´ËÒ³ÓÉLinux WikiÓû§Chenxing
ÓÚ2009Äê1ÔÂ19ÈÕ (ÐÇÆÚÒ»)
05:37µÄ×îºó¸ü¸Ä¡£ ÔÚAllen Lee
µÄ¹¤×÷»ù´¡ÉÏ¡£
³ö×ÔLinux Wiki
ÓëWindows½«Ó²ÅÌ¿´×ö“CÅÌ”¡¢“DÅÌ”¼¸¸ö¶ÀÁ¢µÄ·ÖÇø²»Í¬£¬Linu ......
ǶÈëʽLinux¿ª·¢ÐèÒªµÄ²Î¿¼×ÊÁÏ
×÷Õߣº ¡¡À´Ô´ÓÚ£º ¡¡·¢²¼Ê±¼ä£º2008-10-6 20:45:00
Òýµ¼£º
ÈçÐè»ñµÃ¶Ô
vmlinux
ºÍ
zimage
Ö®¼äÇø±ðµÄ¼«ºÃ½âÊÍ£¬ÇëÔÚ
Alessandro Rubini
±àдµÄ
“
Kernel Configuration: dealing with the unexpected
£¨
Linux Magazine
£©µÄÒ»ÎÄÖÐÕÒµ½
&ld ......
µÚ8ÕÂ:ÔÙÂÛÊý×é
1.ʲôʱºòÊý×éºÍÖ¸ÕëÊÇÏàͬµÄ
CÓïÑÔ±ê×¢¶Ô´Ë×÷ÁËÈçÏÂ˵Ã÷:
¹æÔò1: ±í´ïʽÖеÄÊý×éÃû(ÓëÉùÃ÷²»Í¬)±»±àÒëÆ÷µ±×÷Ò»¸öÖ¸Ïò¸ÃÊý×éµÚÒ»¸öÔªËصÄÖ¸Õë.
int a[10], *p, i=2;
¿ÉÒÔͨ¹ýÒÔÏÂÈκÎÒ»ÖÖ·½·¨·ÃÎÊa[i];
p = a; p[i];
p = a; *(p+a);
p = a + i; *p
ÔÚ±í´ïʽÖÐ,Ö¸ÕëºÍÊý×éÊÇ¿ÉÒÔ»¥»»µÄ,ÒòΪËüÃÇÔÚ± ......