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

LinuxÖг£ÓõÄC\C++Í·Îļþ

1¡¢  һЩͷÎļþµÄ×÷Óãº
<assert.h>£ºANSI C¡£Ìṩ¶ÏÑÔ£¬assert(±í´ïʽ)
<glib.h>£ºGCC¡£GTK£¬GNOMEµÄ»ù´¡¿â£¬ÌṩºÜ¶àÓÐÓõĺ¯Êý£¬ÈçÓÐÊý¾Ý½á¹¹²Ù×÷º¯Êý¡£Ê¹ÓÃglibÖ»ÐèÒª°üº¬<glib.h>
<dirent.h>£ºGCC¡£Îļþ¼Ð²Ù×÷º¯Êý¡£struct dirent,struct DIR,opendir(),closedir(),readdir(),readdir64()µÈ
<ctype.h>£ºANSI C¡£×Ö·û²âÊÔº¯Êý¡£isdigit(),islower()µÈ
<errno.h>£ºANSI
C¡£²é¿´´íÎó´úÂëerrnoÊǵ÷ÊÔ³ÌÐòµÄÒ»¸öÖØÒª·½·¨¡£µ±linuc C apiº¯Êý·¢ÉúÒ쳣ʱ,Ò»°ã»á½«errno±äÁ¿(Ðèinclude
errno.h)¸³Ò»¸öÕûÊýÖµ,²»Í¬µÄÖµ±íʾ²»Í¬µÄº¬Òå,¿ÉÒÔͨ¹ý²é¿´¸ÃÖµÍÆ²â³ö´íµÄÔ­Òò¡£ÔÚʵ¼Ê±à³ÌÖÐÓÃÕâÒ»Õнâ¾öÁ˲»ÉÙÔ­±¾¿´À´ÄªÃûÆäÃîµÄÎÊÌâ¡£±È½Ï
Âé·³µÄÊÇÿ´Î¶¼ÒªÈ¥linuxÔ´´úÂëÀïÃæ²éÕÒ´íÎó´úÂëµÄº¬Ò壬ÏÖÔÚ°ÑËüÌù³öÀ´£¬ÒÔºóÐèÒª²éʱ¾ÍÀ´ÕâÀï¿´ÁË¡£À´×Ôlinux
2.4.20-18µÄÄں˴úÂëÖеÄ/usr/include/asm/errno.h
<getopt.h>£º´¦ÀíÃüÁîÐвÎÊý¡£getopt()
2¡¢
-------------------------
linux³£ÓÃÍ·ÎļþÈçÏ£º
POSIX±ê×¼¶¨ÒåµÄÍ·Îļþ
<dirent.h>        Ŀ¼Ïî
<fcntl.h>         Îļþ¿ØÖÆ
<fnmatch.h>    ÎļþÃûÆ¥ÅäÀàÐÍ
<glob.h>    ·¾¶ÃûģʽƥÅäÀàÐÍ
<grp.h>        ×éÎļþ
<netdb.h>    ÍøÂçÊý¾Ý¿â²Ù×÷
<pwd.h>        ¿ÚÁîÎļþ
<regex.h>    ÕýÔò±í´ïʽ
<tar.h>        TAR¹éµµÖµ
<termios.h>    ÖÕ¶ËI/O
<unistd.h>    ·ûºÅ³£Á¿
<utime.h>    Îļþʱ¼ä
<wordexp.h>    ×Ö·ûÀ©Õ¹ÀàÐÍ
-------------------------
<arpa/inet.h>    INTERNET¶¨Òå
<net/if.h>    Ì×½Ó×Ö±¾µØ½Ó¿Ú
<netinet/in.h>    INTERNETµØÖ·×å
<netinet/tcp.h>    ´«Êä¿ØÖÆÐ­Ò鶨Òå
------------------------- 
<sys/mman.h>    ÄÚ´æ¹ÜÀíÉùÃ÷
<sys/select.h>   


Ïà¹ØÎĵµ£º

linux³£ÓõÄһЩÃüÁî

1.ÏÔʾÎļþĿ¼ÃüÁîls(DOSÏÂΪDIR)
¡¡¡¡¡¡¡¡ÔÚLinuxÖÐÓÃlsÃüÁîÏÔʾÎļþ¼°Ä¿Â¼(µ±È»£¬ÄãÈÔȻҲ¿ÉÓÃDIRÃüÁֻ²»¹ýÔÚÕâÀïµÄ²ÎÊý²»Í¬)¡£ÀýÈ磺#ls
¡¡¡¡¡¡¡¡root mnt boot dev bin usr xiong tmp etc games
¡¡¡¡¡¡¡¡¿´ÆðÀ´Ëƺõ¼òµ¥(¾ÍÏ൱ÓÚDOSÖеēDIR/W”)£¬µ«Äã»á·¢ÏÖÄã¿´µ½µÄÓÐЩÄѶ®£¬Á¬ÄÄЩÊÇĿ¼ÄÄÐ©Ê ......

linux¹ÒÔØwindows¹²Ïíºó£¬ÍøÕ¾ÀïµÄͼƬ²»ÄÜÕý³£ÏÔʾ

»·¾³ËµÃ÷
ºô½ÐÖÐÐÄ·þÎñÆ÷
    ϵͳ£ºCentos5
    IP£º192.168.1.146
    httpÍøÕ¾¸úĿ¼/var/www/html/
ÎҵĵçÄÔ
    ϵͳ£ºwindows XP
    IP£º 192.168.4.98
    ¹²ÏíĿ¼£ºD:\bgcrm £¨Ò»¸öphpµÄÍøÕ¾£©
bgcrmµÄÍøÕ¾ ......

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐò

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐòdemo
1: °²×°±àÒë»·¾³
sudo yum install qt4-devel curl-devel gcc glibc-devel
2: È¥ http://www.libfetion.cn/Linux_demoapp_download.html ÏÂÔØ×îеÄlibfetion GUIÔ´´úÂë
3: ʹÓýâѹÃüÁî½âѹÏÂÔØºóµÄÎļþ
tar -zxvf linux-fetion-***.tar.gz (***Ϊ³ÌÐò°æ±¾ºÅ)
4: ½øÈ ......

¹ØÓÚlinux source£¬exportÃüÁһЩÒÉ»óµÄ½â¾ö

sourceÃüÁîÓ÷¨£º
source FileName
×÷ÓÃ:ÔÚµ±Ç°bash»·¾³Ï¶ÁÈ¡²¢Ö´ÐÐFileNameÖеÄÃüÁî¡£
×¢£º¸ÃÃüÁîͨ³£ÓÃÃüÁî“.”À´Ìæ´ú¡£
È磺source .bash_rc Óë . .bash_rc ÊǵÈЧµÄ¡£
sourceÃüÁî(´Ó C Shell ¶øÀ´)ÊÇbash shellµÄÄÚÖÃÃüÁî¡£µãÃüÁ¾ÍÊǸöµã·ûºÅ£¬(´ÓBourne Shell¶øÀ´)ÊÇsourceµÄÁíÒ»Ãû³Æ¡£Í¬Ñùµ ......

¼ÇÒ»µÀC±ÊÊÔÌ⣬¸÷ÖÖâ«Ëö½â·¨¡£

ÉùÃ÷£º´ËÎĵĸ÷ÖÖâ«Ëö½â·¨×ª×Ôµç×Ó¿Æ´óÄÚÍøÂÛ̳£¬¶Ô£¬¾ÍÊÇ×î½üÒò”ÐíÔ¸ÃÅ“¶øÉϸ÷´óÐÂÎÅÍøÕ¾µÄѧУ¡£
ÌâÄ¿ÈçÏ£º
#include "stdio.h"
void print()
{
*
}
void main()
{
}
ÒªÇóÔÚ*ºÅ´¦Ìí¼ÓÓï¾ä£¬³ÌÐòÊä³öhello,world!

ºÃÁË£¬ÎÒÖ±½ÓÌù´ð°¸ÁË£¬ÏàÐÅ´ó¼Ò¶¼¿´µÃ¶®£¬ÓÐЩʵÔÚÊÇâ«Ëö¡£¡£¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ