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

C HTTP URL ½âÂë

Õ⼸ÌìÔÚʹÓÃÓÃCд¸öÏîÄ¿×éµÄ×Ô¶¯»¯²âÊÔ¹¤¾ßÀàËÆCGI³ÌÐò£¬µÚÒ»¸öÓöµ½µÄÎÊÌâ¾ÍÊDZàÂëÁË¡£
0~9 a~z A¡«ZÕâЩ×Ö·ûÊDz»»á±»±àÂëµÄ£¬µ«ÊDZÈÈçһЩÌØÊâ×Ö·û»òÊÇÖÐÎÄ£¬post»ògetÊý¾Ýʱ£¬»á¶ÔÊý¾Ý×Ô¶¯½øÐбàÂ룬±ÈÈ纺×Ö'ÖÐ',Èç¹ûÒ³Ãæ²ÉÓõÄÊÇgb2312±àÂ룬'ÖÐ'×ֻᱻ±àÂëΪ'%D6%D0'£¬ºöÂÔ'%'±êʶ,Á½¸öÊ®Áù½øÖÆÊý£¬¼´0xD6,0xD0£¬Áù¸ö×Ö·û¡£Èç¹ûÒ³ÃæÊÇutf-8±àÂ룬'ÖÐ'×ֻᱻ±àÂëΪ'%D6%D0%AD'£¬ºöÂÔ'%'±êʶ£¬Èý¸öÊ®Áù½øÖÆÊý£¬¼´0xD6,0xD0,0xAD,¾Å¸ö×Ö·û¡£
½âÂëʱ£¬±ÈÈçgb±àÂ룬Ҫ½«Áù¸ö×Ö·û±ä³ÉÁ½¸ö×Ö·û£¬¼´°Ñ×Ö·û´¦Àíºó£¬¿ÉÒÔ½«Á½¸öÊ®Áù½øÖÆÊýת»»ÎªÁ½¸öÊ®½øÖÆÊý£¬È»ºóÇ¿ÖÆת»»ÎªÁ½¸ö×Ö·û¡£0xD6,214,0xD0,208;
char *encode="%D6%D0";
char decode[3];
decode[0]=214;//%D6,0xD6
decode[1]=208;//%D0,0xD0
decode[2]='\0';
printf("%s\n",decode);//Êä³ö'ÖÐ'¡£
utf-8±àÂë½âÂëÊÇͬÑùµÄÔ­Àí¡£
char *encode="%D6%D0%AD";
char decode[4];
decode[0]=214;//%D6,0xD6
decode[1]=208;//%D0,0xD0
decode[2]=173;//%AD,0xAD
decode[3]='\0';
printf("%s\n",decode);//Êä³ö'ÖÐ'¡£
¿ÉÒÔ¿´³öÀ´£¬²ÉÓÃutf-8£¬ÖÐÎıàÂë»áʹ´æ´¢¿Õ¼ä±ä´ó¡£¶ÔÓÚ½âÂ룬ÐèÒª¸öÊ®Áù½øÖƵ½Ê®½øÖƵÄת»»º¯Êý£¬ºÜ¼òµ¥Á˾ͿÉÒÔʵÏÖÁË¡£


Ïà¹ØÎĵµ£º

c±àÒëÈ«¹ý³Ì

CÓïÑÔ±àÒëÈ«¹ý³Ì
    ±àÒëµÄ¸ÅÄ±àÒë³ÌÐò¶ÁÈ¡Ô´³ÌÐò£¨×Ö·ûÁ÷£©£¬¶ÔÖ®½øÐдʷ¨ºÍÓï·¨µÄ·ÖÎö£¬½«¸ß¼¶ÓïÑÔÖ¸Áîת»»Îª¹¦ÄܵÈЧµÄ»ã±à´úÂ룬ÔÙÓÉ»ã±à³ÌÐòת»»Îª»úÆ÷ÓïÑÔ£¬²¢ÇÒ°´ÕÕ²Ù×÷ϵͳ¶Ô¿ÉÖ´ÐÐÎļþ¸ñʽµÄÒªÇóÁ´½ÓÉú³É¿ÉÖ´ÐгÌÐò¡£
    ±àÒëµÄÍêÕû¹ý³Ì£ºCÔ´³ÌÐò£­£­>Ô¤±àÒë´¦Àí(.c)£­£­ ......

Ò»¸öc/c++º¯Êýµ÷ÓÃÕ»µÄʵÏÖ

º¯Êýµ÷ÓÃÕ»µÄʵÏÖ¡£¿ÉÓÃÓÚʵÏÖ¼òµ¥µÄ½Å±¾½âÊÍÆ÷¡£
ÉùÃ÷:
#pragma once
const int BUFFERSIZE = 1024;
const int growfactor = 2;
// this stack is used as call stack.
class TStack{
private:
size_t size;   // the stack length
size_t pos;   // the stack top position   
cha ......

C/C++:³ÌÐòµÄÄÚ´æ·ÖÅ䷽ʽ


2008-07-07 23:32:21
 
1.ÄÚ´æ·ÖÅ䷽ʽ
ÄÚ´æ·ÖÅ䷽ʽÓÐÈýÖÖ£º
[1]´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ­·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄÕû¸öÔËÐÐÆڼ䶼´æÔÚ¡£ÀýÈçÈ«¾Ö±äÁ¿£¬static±äÁ¿¡£
[2]ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯ÊýÖ´ÐнáÊøʱÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ