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

Linux Cº¯Êý¿â²Î¿¼ÊÖ²á(Ò»)

µÚ1ÕÂ×Ö·û²âÊÔº¯Êýisalnum(²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ×Öĸ»òÊý×Ö)isalpha(²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ×Öĸ)isascii(²âÊÔ×Ö·ûÊÇ·ñΪASCIIÂë×Ö·û)isblank(²âÊÔ×Ö·ûÊÇ·ñΪ¿Õ¸ñ×Ö·û)iscntrl(²âÊÔ×Ö·ûÊÇ·ñΪASCIIÂëµÄ¿ØÖÆ×Ö·û)isdigit(²âÊÔ×Ö·ûÊÇ·ñΪ°¢À­²®Êý×Ö)isgraph(²âÊÔ×Ö·ûÊÇ·ñΪ¿É´òÓ¡×Ö·û)islower(²âÊÔ×Ö·ûÊÇ·ñΪСдӢÎÄ×Öĸ)isprint(²âÊÔ×Ö·ûÊÇ·ñΪ¿É´òÓ¡×Ö·û)isspace(²âÊÔ×Ö·ûÊÇ·ñΪ¿Õ¸ñ×Ö·û)ispunct(²âÊÔ×Ö·ûÊÇ·ñΪ±êµã·ûºÅ»òÌØÊâ·ûºÅ)isupper(²âÊÔ×Ö·ûÊÇ·ñΪ´óдӢÎÄ×Öĸ)isxdigit(²âÊÔ×Ö·ûÊÇ·ñΪ16½øÖÆÊý×Ö)µÚ2ÕÂÊý¾Ýת»»º¯Êýatof(½«×Ö·û´®×ª»»³É¸¡µãÐÍÊý)1atoi(½«×Ö·û´®×ª»»³ÉÕûÐÍÊý)atol(½«×Ö·û´®×ª»»³É³¤ÕûÐÍÊý)ecvt(½«¸¡µãÐÍÊýת»»³É×Ö·û´®,19È¡ËÄÉáÎåÈë)fcvt(½«¸¡µãÐÍÊýת»»Îª×Ö·û´®,20È¡ËÄÉáÎåÈë)gcvt(½«¸¡µãÐÍÊýת»»Îª×Ö·û´®,21È¡ËÄÉáÎåÈë)µÚ3ÕÂÄÚ´æÅäÖú¯Êýalloca(ÅäÖÃÄÚ´æ¿Õ¼ä)brk(¸Ä±äÊý¾Ý×ֽڵķ¶Î§)calloc(ÅäÖÃÄÚ´æ¿Õ¼ä)free(ÊÍ·ÅÔ­ÏÈÅäÖõÄÄÚ´æ)getpagesize(È¡µÃÄÚ´æ·ÖÒ³´óС)malloc(ÅäÖÃÄÚ´æ¿Õ¼ä)mmap(½¨Á¢ÄÚ´æÓ³Éä)munmap(½â³ýÄÚ´æÓ³Éä)realloc(¸ü¸Ä¼ºÅäÖõÄÄÚ´æ¿Õ¼ä)sbrk(Ôö¼Ó³ÌÐò¿ÉÓõÄÊý¾Ý¿Õ¼ä)µÚ4ÕÂʱ¼äº¯Êýasctime(½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ)clock(È¡µÃ½ø³ÌÕ¼ÓÃCPUµÄ´óԼʱ¼ä)ctime(½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ)difftime(¼ÆËãʱ¼ä²î¾à)ftime(È¡µÃÄ¿Ç°µÄʱ¼äºÍÈÕÆÚ)gettimeofday(È¡µÃÄ¿Ç°µÄʱ¼ä)gmtime(È¡µÃÄ¿Ç°µÄʱ¼äºÍÈÕÆÚ)localtime(È¡µÃµ±µØÄ¿Ç°µÄʱ¼äºÍÈÕÆÚ)mktime(½«Ê±¼ä½á¹¹Êý¾Ýת»»³É¾­¹ýµÄÃëÊý)settimeofday(ÉèÖÃÄ¿Ç°µÄʱ¼ä)strftime(¸ñʽ»¯ÈÕÆÚºÍʱ¼ä)time(È¡µÃÄ¿Ç°µÄʱ¼ä)tzset(ÉèÖÃʱÇøÒÔ¹©Ê±¼äת»»)



Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

C Fork º¯Êý

Fork º¯Êý£º
#include <unistd.h>
pid_t fork(void);
ÓÉfork ´´½¨µÄнø³Ì±»³ÆΪ×Ó½ø³Ì¡£fork º¯Êý±»µ÷ÓÃÁ½´Î£¬µ«ÊÇ·µ»ØÁ½´Î¡£Á½´Î·µ»ØµÄΨһÇø±ðÊÇ×Ó½ø³ÌµÄ·µ»ØÖµÊÇ0£¬¶ø¸¸½ø³ÌµÄ·µ»ØÖµÔòÊÇÐÂ×Ó½ø³ÌµÄID¡£½«×Ó½ø³ÌµÄID ·µ»Ø¸ø¸¸½ø³ÌµÄÀíÓÉÊÇ£ºÒ»¸ö½ø³Ì¿ÉÒÔÓжà¸ö×Ó½ø³Ì£¬²¢ÇÒûÓк¯ÊýÊÇÒ»¸ö½ø³Ì»ñµÃÆä×Ó½ø³ÌµÄ½ø³ ......

linuxÏÂgtkÖÐʹÓÃCÁ¬½Ómysql

Code:
1.»·¾³ÅäÖÃ
Ò»°ãÇé¿öÏ°²×°ÁËMySQLµÄ»úÆ÷ºÜÉÙ°²×°¿ª·¢°ü£¬Õâ¸öÐèҪעÒâ¡£Ò²¾ÍÊÇÄúÐèÒªÔÚ³ÌÐòÖаüº¬ÕâÑùµÄÓï¾ä£º
#include <mysql.h>
Èç¹ûÔÚ±àÒëµÄʱºòÌáʾº¬ÓÐÀàËÆÓÚÕÒ²»µ½ mysql.h µÄÐÅÏ¢£¬Õâ¾Í˵Ã÷ÄúûÓа²×°Ïà¹Ø¿ª·¢°ü¡£
»¹ÓÐÄú±ØÐ뽨Á¢Ò»¸öÊý¾Ý¿âÓëһЩ±í£¬Õâ¸öÔÚ±¾ÎÄÖлáʹÓá£
2.ÎÒÃÇÏÈÁ´½ÓÊ ......

LinuxÏÂÓÃeclipseдC/C++ÓïÑÔ³ÌÐòµÄ±àÒëÎÊÌâ

µ±Òª½¨Á¢Ï̵߳Èʱ£¬ÔÚLinuxÏ£¬ÓÃÎı¾±à¼­£¬ÔÚ¼üÈë“g++ -lpthread”.......“¿ÉÒÔ°Ñ¿âpthreadÒýÈ딣¬±àÒëͨ¹ý¡£ÏÖÔÚÏëÓÃeclipse£¬µ«ÊÇĬÈÏÇé¿öÏ£¬ÒýÈë²»ÁËpthread¡£»á±¨“undefined reference to phread_create”µÈ´íÎó¡£
½â¾ö·½·¨£º¿ÉÒÔÔÚprojectÖкõ½properties
ÔÚÀïÃæµÄ&ldquo ......

LinuxÏÂC/C++±àÒëÆ÷gccʹÓüò½é

1.gcc°üº¬µÄc/c++±àÒëÆ÷
gcc,ccÓëc++,g++
gccºÍccÊÇÒ»ÑùµÄ£¬c++ºÍg++ÊÇÒ»ÑùµÄ¡£Ò»°ãc³ÌÐò¾ÍÓÃgcc±àÒ룬c++³ÌÐò¾ÍÓÃg++±àÒë¡£
2.gccµÄ»ù±¾Ó÷¨
gcc test.c£ºÈç¹ûûÓÐÖ¸¶¨Êä³öµÄÎļþ£¬Ä¬ÈϽ«±àÒë³öÒ»¸öÃûΪa.outµÄ³ÌÐò
gcc test.c -o test£º-o²ÎÊýÓÃÀ´Ö¸¶¨Éú³ÉÄ¿±ê³ÌÐòµÄÃû×Ö£¬ÕâÑù½«±àÒë³öÒ»¸öÃûΪtestµÄ³ÌÐò¡£
3.Ϊʲ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ