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

C ÖÐ __int64Ó÷¨

C ÖУ¬
int ºÍlongµÄ·¶Î§Ò»Ñù£¬Ö»Äܱíʾ(-2^31~2^31)ÕûÊý£¬¼´£¨-20ÒÚ¡« 20ÒÚ£©
unsigned int Óëunsigned long ·¶Î§ÊÇ(0 ~2^32),40ÒÚ¶àÒ»µã¡£
    Èç¹ûÒª±íʾ¸ü´óһЩµÄÕûÊý£¬ÕâÁ½ÖÖÊý¾ÝÀàÐ;Ͳ»ºÃÓÃÁË£¬ÔÚACMÖо­³£Òª´¦ÀíÕâÑùµÄÊý¾ÝÀàÐÍ£¬ÒÔÇ°Îҵı¿·½·¨ÊÇ×öÒ»¸öÕûÐÎÊý×飬ÿ¸öa[i]´æһ룬ÕâÑù¼Ó¼õ³Ë³ýÔËË㶼Ҫ×Ô¼º¶¨Òå¡£¸Õ¸Õ¿´µ½ÍøÉϵÄÒ»¶Î´úÂ룬ÓõÄÊÇ__int64,8¸ö×Ö½ÚÀ´´æ´¢ÕûÊý£¬²Î¿¼ÁËһЩÎÄÕ£¬ÏÂÃæ½éÉÜËüµÄ·¶Î§ºÍÓ÷¨£º
   __int64,·¶Î§£¨-2^63~2^63),¼´£¨-922ÒÚÒÚ¡«922ÒÚÒÚ£©
  unsigned __int64,·¶Î§£¨0¡«2^64),1844ÒÚÒÚ¡£
  __int64Ö§³ÖËÄÔò»ìºÏÔËËãºÍλÔËË㣬ÓëintÀàÐÍÔËË㽫×Ô¶¯½øÐÐÀàÐÍת»»µ½__int64
  vc 6.0ÖÐÊäÈëÊä³ö£º
     __int64:
     scanf("%I64d",amp;a);
     printf("%I64d",a);
   unsigned __int64
     scanf("%I64u",amp;a);
     printf("%I64u",a);
dev C ÖÐÊäÈëÊä³ö£º
    long long a;
    a=100000000000000000ll
    Ò»¶¨Òª¼Ó ll
    cin>>a;
    cout<
    scanf("%I64d",amp;a);
    printf("%I64d",a);
 ÎÞ·ûºÅµÄÓ÷¨ÀàËÆ¡£


Ïà¹ØÎĵµ£º

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......

ÈçºÎÀí½âC run

ÈçºÎÀí½âC run-time library £¨CÔËÐÐʱ¿â£©
×¢£º ÒÔÏÂÄÚÈݲ¿·ÖÒý×ÔCSNDÖÐÏà¹ØÌÖÂÛµÄÌû×Ó£¬²¢½áºÏ×Ô¼ºµÄÀí½âÕûÀí¶ø³É¡£½ö¹©²Î¿¼¡£
1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´Ë ......

c±àÒëÈ«¹ý³Ì

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

Ò»¸öÓÃCʵÏÖµÄURL½âÂëµÄ³ÌÐò

#include <stdio.h>
#include <string.h>
/*
* decode encd with URL, the result saved to decd.
* return point to be decoded string.
* auth: baisoo email:baisoo@msn.com
*/
char *decode( char *encd, char decd[] );
int main( int argc, char *argv[] )
{
    if( argc < ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ