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

C³£Óú¯Êý

¼ì²é¿Õ¸ñ×Ö·û
#include <ctype.h>
int isspace ( int c );
http://www.cplusplus.com/reference/clibrary/cctype/isspace/
Checks if parameter c is a white-space character.For the purpose of this function, standard white-space characters are:
' '
(0x20)
space (SPC)
'\t'
(0x09)
horizontal tab (TAB)
'\n'
(0x0a)
newline (LF)
'\v'
(0x0b)
vertical tab (VT)
'\f'
(0x0c)
feed (FF)
'\r'
(0x0d)
carriage return (CR)
 /* isspace example */
#include <stdio.h>
#include <ctype.h>
int main ()
{
int c;
int i=0;
char str[]="Example sentence to test isspace\n";
while (str[i])
{
c=str[i];
if (isspace(c)) c='\n';
putchar (c);
i++;
}
return 0;
}

/*
This code prints out the C string character by character, replacing any white-space character by a newline character. Output:

Example
sentence
to
test
isspace
*/


memcpyʵÏÖ£º
char *strcpy(char *strDest, const char *strSrc){
assert((strDest!=NULL) && (strSrc !=NULL)); // 2·Ö
char *address = strDest; // 2·Ö
while( (*strDest++ = * strSrc++) != '\0' ) // 2·Ö
NULL ;
return address ; // 2·Ö
}


Ïà¹ØÎĵµ£º

C runtime libraryµÄÔËÐÐÔ­Àí

1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©£»ËùÒÔ£¬C ÓïÑÔÄں˿ª·¢³öÀ´Ö®ºó£¬Dennis Ritchie ºÍ Brian Kernighan ¾ÍÓà C ±¾É ......

staticÏê½â£¨c/c++£©

C/C++ÖÐStaticµÄ×÷ÓÃÏêÊö
Ò».ÔÚCÓïÑÔÖУ¬staticµÄ×ÖÃæÒâ˼ºÜÈÝÒ×°ÑÎÒÃǵ¼ÈëÆç;£¬ÆäʵËüµÄ×÷ÓÃÓÐÈýÌõ¡£
£¨1£©ÏÈÀ´½éÉÜËüµÄµÚÒ»ÌõÒ²ÊÇ×îÖØÒªµÄÒ»Ìõ£ºÒþ²Ø¡£
µ±ÎÒÃÇͬʱ±àÒë¶à¸öÎļþʱ£¬ËùÓÐδ¼Óstaticǰ׺µÄÈ«¾Ö±äÁ¿ºÍº¯Êý¶¼¾ßÓÐÈ«¾Ö¿É¼ûÐÔ¡£ÎªÀí½âÕâ¾ä»°£¬ÎÒ¾ÙÀýÀ´ËµÃ÷¡£ÎÒÃÇҪͬʱ±àÒëÁ½¸öÔ´Îļþ£¬Ò»¸öÊÇa.c£¬ÁíÒ»¸öÊÇm ......

C#£¨C sharp£©×Ö·û´®ºÍʱ¼äµÄÏ໥ת»»

C#£¨C sharp£©×Ö·û´®ºÍʱ¼äµÄÏ໥ת»»¡£
 
Ò»¡¢DateTime –> string
ʱ¼äÀàÐÍת»¯³É×Ö·û´®ÀàÐÍ£¬ÄÇÊÇÏ൱µÄ¼òµ¥£¬Ö±½Óµ÷ÓÃToString()·½·¨¼´¿É¡£È磺
DateTime dt = DateTime.Now;
string dtStr = dt.ToString();
 
Èç¹ûÏë¶ÔÊä³ö¸ñʽ»¯£¬¿ÉÒÔÕâôд£º
dt.ToString("yyyyÄêMMÔÂddÈÕ");   ......

C±àÒëµÄαָÁî

Ò»°ã±äÁ¿¶¨ÒåÔÚ*.cÎļþÖÐ,¶ø*.hÎļþÖÐÉùÃ÷±äÁ¿»òº¯ÊýÃûºÍ·ûºÅÃû.
±ÜÃæÖØ¸´±àÒëµÄ½â¾ö·½·¨:
    ±ÈÈçÄãÓÐÁ½¸öCÎļþ£¬ÕâÁ½¸öCÎļþ¶¼includeÁËͬһ¸öÍ·Îļþ¡£¶ø±àÒëʱ£¬ÕâÁ½¸öCÎļþ¶¼Òªµ÷ÓÃͬһ¸öÍ·ÎļþÈ¥±àÒë£¬ÖØ¸´±àÒë»á²úÉú´óÁ¿µÄÉùÃ÷³åÍ»¡£½â¾öÕâ¸öÎÊÌâµÄ·½·¨Ê¹ÓÃ#ifndef, #endif, #endif¡£
 &nbs ......

CÉî¶È½âÆÊÎÊÌâ´úÂë·ÖÎö±Ê¼Ç1

#include <stdio.h>
int main()
{
int a[5]={1,2,3,4,5};
int *ptr1=(int*)(&a+1);
int *ptr2=(int*)((int)a+1);
printf("%p,%x,%p\n",(int)a,*(ptr2+1),ptr1);//(int*)(&a));
printf("%d\n",(int*)(&a-16));
printf("%d,%x\n",ptr1[-1] ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ