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

C/C++ÏÂASCIIÓëEBCDICÂëÖ®¼äµÄÇáËÉת»»

EBCDIC (Extended Binary Coded Decimal Interchange Code) À©Ôö¶þ½øʽʮ½ø½»»»Â룬ΪIBMÓÚ1963Ä꣭1964Äê¼äÍƳöµÄ×Ö·û±àÂë±í£¬¸ù¾ÝÔçÆÚ´ò¿×»úʽµÄ¶þ½ø»¯Ê®½øÊý(BCD, Bindary Coded Decimal)ÅÅÁжø³É¡£ÊÇIBMÃÔ¶û¼¶ÒÔÉϵçÄԵıê×¼Âë¡£
ASCII£¨American Standard Code for Information Interchange£¬ÃÀ¹úÐÅÏ¢»¥»»±ê×¼´úÂ룩ÊÇ»ùÓÚÀ­¶¡×ÖĸµÄÒ»Ì×µçÄÔ±àÂëϵͳ¡£ËüÖ÷ÒªÓÃÓÚÏÔʾÏÖ´úÓ¢Ó¶øÆäÀ©Õ¹°æ±¾EASCIIÔò¿ÉÒÔÃãÇ¿ÏÔʾÆäËûÎ÷Å·ÓïÑÔ¡£ËüÊÇÏÖ½ñ×îͨÓõĵ¥×Ö½Ú±àÂëϵͳ£¨µ«ÊÇÓб»UniCode×·Éϵļ£Ï󣩣¬²¢µÈͬÓÚ¹ú¼Ê±ê×¼ISO/IEC 646¡£
ÏÖÔÚ¾¡¹ÜASCIIÂë·Ç³£Á÷ÐУ¬µ«²»ÉÙרҵ¸ñʽµÄÊý¾ÝÎļþÖУ¬ÈÔÈ»ÔÚÓÃÀÏʽµÄEBCDICÂë´æ´¢×Ö·ûÐÅÏ¢¡£ÈçµØÕðÐźżÇ¼ÎļþSEG-Y(SEGY)¸ñʽµÈµÈ¡£Ö»ÓнøÐÐת»»Ö»ÓвÅÄÜÕý³£ÏÔʾ¡£Æä¹Ø¼üÒ²¾ÍÊǽ¨Á¢Ò»¸öÏà¶ÔÓ¦µÄÂë±í£¬È»ºóÂò¸ö×Ö·û½øÐÐÏàÓ¦µÄת»»¼´¿É¡£
ÒÔÏÂÊÇC¸ñʽµÄ´úÂ룺
/*
** ASCII <=> EBCDIC conversion functions
*/
static unsigned char a2e[256] = {
0, 1, 2, 3, 55, 45, 46, 47, 22, 5, 37, 11, 12, 13, 14, 15,
16, 17, 18, 19, 60, 61, 50, 38, 24, 25, 63, 39, 28, 29, 30, 31,
64, 79,127,123, 91,108, 80,125, 77, 93, 92, 78,107, 96, 75, 97,
240,241,242,243,244,245,246,247,248,249,122, 94, 76,126,110,111,
124,193,194,195,196,197,198,199,200,201,209,210,211,212,213,214,
215,216,217,226,227,228,229,230,231,232,233, 74,224, 90, 95,109,
121,129,130,131,132,133,134,135,136,137,145,146,147,148,149,150,
151,152,153,162,163,164,165,166,167,168,169,192,106,208,161, 7,
32, 33, 34, 35, 36, 21, 6, 23, 40, 41, 42, 43, 44, 9, 10, 27,
48, 49, 26, 51, 52, 53, 54, 8, 56, 57, 58, 59, 4, 20, 62,225,
65, 66, 67, 68, 69, 70, 71, 72, 73, 81, 82, 83, 84, 85, 86, 87,
88, 89, 98, 99,100,101,102,103,104,105,112,113,114,115,116,117,
118,119,120,128,138,139,140,141,142,143,144,154,155,156,157,158,
159,160,170,171,172,173,174,175,176,177,178,179,180,181,182,183,
184,185,186,187,188,189,190,191,202,203,204,205,206,207,218,219,
220,221,222,223,234,235,236,237,238,239,250,251,


Ïà¹ØÎĵµ£º

C++/CһЩÀàÐ͵ÄÈ¡Öµ·¶Î§

long longµÄ×î´óÖµ£º9223372036854775807
long longµÄ×îСֵ£º-9223372036854775808
unsigned long longµÄ×î´óÖµ£º1844674407370955161
__int64µÄ×î´óÖµ£º9223372036854775807
__int64µÄ×îСֵ£º-9223372036854775808
unsigned __int64µÄ×î´óÖµ£º18446744073709551615
ÎҵĵçÄÔ¶Ô__int128²»Ö§³Ö£¬Õâ¸ö¿ÉÄÜÊÇÔ¤Áô¸ø½«À ......

Turbo C 2.0 º¯ÊýÖÐÎÄ˵Ã÷´óÈ«

Turbo C 2.0 º¯ÊýÖÐÎÄ˵Ã÷´óÈ«
·ÖÀຯÊý,ËùÔÚº¯Êý¿âΪctype.h
int isalpha(int ch) ÈôchÊÇ×Öĸ('A'-'Z','a'-'z')·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isalnum(int ch) ÈôchÊÇ×Öĸ('A'-'Z','a'-'z')»òÊý×Ö('0'-'9'),·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isascii(int ch) ÈôchÊÇ×Ö·û(ASCIIÂëÖеÄ0-127)·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int iscntrl(int ......

memcached Óëc/c++ÔËÓÃ

ÐÞ¸Ämakefile£¬ÔÚLIBSÀïÃæ¼ÓÉÏ-lmemcached£¬±ÈÈçÔ­À´ gcc test.c£¬ÏÖÔÚ gcc test.c -lmemcached¡£Õâ¸ö¿â¾ÍÊÇlibmemcachedÌṩµÄ¡£
È»ºóÌí¼Ó#include<libmemcached/memcached.h>£¬Õâ¸öÎļþÒ²ÊÇlibmemcachedÌṩµÄ¡£
Ö÷º¯ÊýÀïÃæÐèÒªÌí¼Ó£º
    memcached_st *memc;
    uint32_t&nbs ......

C ÓïÑÔÖÐÇå¿ÕÊäÈ뻺³åÇø

CÓïÑÔÖÐÓм¸¸ö»ù±¾ÊäÈ뺯Êý£º
//»ñÈ¡×Ö·ûϵÁÐ
int fgetc(FILE *stream);
int getc(FILE *stream);
int getchar(void);
 
//»ñÈ¡ÐÐϵÁÐ
char *fgets(char * restrict s, int n, FILE * restrict stream);
char *gets(char *s);//¿ÉÄܵ¼ÖÂÒç³ö£¬ÓÃfgets´úÌæÖ®¡£
 
//¸ñʽ»¯ÊäÈëϵÁÐ
int fscanf(FILE * r ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ