Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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(ÉèÖÃʱÇøÒÔ¹©Ê±¼äת»»)



Ïà¹ØÎĵµ£º

²éÕÒ×Ö·û´®ÖÐ×Ö·û²»Öظ´µÄ×î´ó×Ó´®(C/C++)

 //ÊäÈë²ÎÊý£º*str ËÑË÷×Ö·û´®
// subStrLen ÓÃÓÚ·µ»ØÕÒµ½µÄ×î´ó×Ó×Ö·û´®³¤¶È
//·µ»Ø£ºÕÒµ½µÄ×î´ó×Ó×Ö·û´®Ö¸Õë
char * findMaxSubStr(char *str, int &subStrLen){
char *subStr;
char *p = str;
int index[256] ;
for (int ix = 0; ix < sizeof(index)/sizeof(index[0]); ix++)
{
in ......

½ÌÄãÀí½â¸´ÔÓµÄC/C++ÉùÃ÷[ת]

Ô­ÎÄ£º
http://www.codeproject.com/cpp/complex_declarations.asp
×÷ÕߣºVikram A Punathambekar
½éÉÜ
Ôø¾­Åöµ½¹ýÈÃÄãÃԻ󲻽⡢ÀàËÆÓÚint * (* (*fp1) (int) ) [10];ÕâÑùµÄ±äÁ¿ÉùÃ÷Â𣿱¾ÎĽ«ÓÉÒ×µ½ÄÑ£¬Ò»²½Ò»²½½Ì»áÄãÈçºÎÀí½âÕâÖÖ¸´ÔÓµÄC/C++ÉùÃ÷£ºÎÒÃǽ«´ÓÿÌ춼ÄÜÅöµ½µÄ½Ï¼òµ¥µÄÉùÃ÷ÈëÊÖ£¬È»ºóÖð²½¼ÓÈëconstÐÞ ......

C Fork º¯Êý

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

C³ÌÐòÉè¼ÆÌ·ºÆÇ¿°æ×ܽᣨһ£©

1¡¢Á½¸öfloatÐÍÊý¾ÝÏà¼Ó£¬Ò²¶¼ÏÈת»¯³ÉdoubleÐÍ£¬È»ºóÔÙÏà¼Ó£¬ÒÔÌá¸ßÔËË㾫¶È¡£
2¡¢Çó×Ö½ÚÔËËã·ûsizeof£¬¼ÇסËü²»ÊÇÒ»¸öº¯Êý¡£
3¡¢++£¬--ÔËËã·ûÖ»ÄÜÓÃÓÚ±äÁ¿£¬¶ø²»ÄÜÓÃÓÚ³£Á¿»òÕß±í´ïʽ¡£
4¡¢++£¬--µÄ½áºÏ·½ÏòÊÇ“×ÔÓÒÏò×ó”¡£
  int i=3;
  cout<<-i++<<endl;
  cout< ......

C/C++ static µÄ×÷ÓÃ

ת×Ô£ºhttp://blog.csdn.net/xiaocai0001/archive/2006/04/14/662921.aspx
static¹Ø¼ü×ÖÊÇC, C++Öж¼´æÔڵĹؼü×Ö, ËüÖ÷ÒªÓÐÈýÖÖʹÓ÷½Ê½, ÆäÖÐÇ°Á½ÖÖÔÚC/C++ÓïÑÔÖÐʹÓÃ, µÚÈýÖÖÖ»ÔÚC++ÖÐʹÓÃ(C,C++ÖоßÌåϸ΢²Ù×÷²»¾¡Ïàͬ, ±¾ÎÄÒÔC++Ϊ׼).
(1)¾Ö²¿¾²Ì¬±äÁ¿
(2)Íⲿ¾²Ì¬±äÁ¿/º¯Êý
(3)¾²Ì¬Êý¾Ý³ÉÔ±/³ÉÔ±º¯Êý
ÏÂÃæ¾ÍÕâÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ