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 ch) ÈôchÊÇ×÷·Ï×Ö·û(0x7F)»òÆÕͨ¿ØÖÆ×Ö·û(0x00-0x1F),·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isdigit(int ch) ÈôchÊÇÊý×Ö('0'-'9')·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isgraph(int ch) ÈôchÊÇ¿É´òÓ¡×Ö·û(²»º¬¿Õ¸ñ)(0x21-0x7E)·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int islower(int ch) ÈôchÊÇСд×Öĸ('a'-'z')·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isprint(int ch) ÈôchÊÇ¿É´òÓ¡×Ö·û(º¬¿Õ¸ñ)(0x20-0x7E)·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int ispunct(int ch) ÈôchÊDZêµã×Ö·û(0x00-0x1F)·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isspace(int ch) ÈôchÊÇ¿Õ¸ñ(' '),ˮƽÖƱí·û('\t'),»Ø³µ·û('\r'), ×ßÖ½»»ÐÐ('\f'),´¹Ö±ÖƱí·û('\v'),»»Ðзû('\n'), ·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isupper(int ch) ÈôchÊÇ´óд×Öĸ('A'-'Z')·µ»Ø·Ç0Öµ,·ñÔò·µ»Ø0
int isxdigit(int ch) ÈôchÊÇ16½øÖÆÊý('0'-'9','A'-'F','a'-'f')·µ»Ø·Ç0Öµ, ·ñÔò·µ»Ø0
int tolower(int ch) ÈôchÊÇ´óд×Öĸ('A'-'Z')·µ»ØÏàÓ¦µÄСд×Öĸ('a'-'z')
int toupper(int ch) ÈôchÊÇСд×Öĸ('a'-'z')·µ»ØÏàÓ¦µÄ´óд×Öĸ('A'-'Z')
Êýѧº¯Êý,ËùÔÚº¯Êý¿âΪmath.h¡¢stdlib.h¡¢string.h¡¢float.h
int abs(int i) ·µ»ØÕûÐͲÎÊýiµÄ¾ø¶ÔÖµ
double cabs(struct complex znum) ·µ»Ø¸´ÊýznumµÄ¾ø¶ÔÖµ
double fabs(double x) ·µ»ØË«¾«¶È²ÎÊýxµÄ¾ø¶ÔÖµ
long labs(long n) ·µ»Ø³¤ÕûÐͲÎÊýnµÄ¾ø¶ÔÖµ
double exp(double x) ·µ»ØÖ¸Êýº¯ÊýexµÄÖµ
double frexp(double value,int *eptr) ·µ»Øvalue=x*2nÖÐxµÄÖµ,n´æÖüÔÚeptrÖÐ
double ldexp(double value,int exp); ·µ»Øvalue*2expµÄÖµ
double log(double x) ·µ»ØlogexµÄÖµ
double log10(double x) ·µ»Ølog10xµÄÖµ
double pow(double x,double y) ·µ»ØxyµÄÖµ
double pow10(int p) ·µ»Ø10pµÄÖµ
double sqrt(double x) ·µ»ØxµÄ¿ª·½
double acos(double x) ·µ»ØxµÄ·´ÓàÏÒcos-1(x)Öµ,xΪ»¡¶È
double asin(double x) ·µ»ØxµÄ·´ÕýÏÒsin-1(x)Öµ,xΪ»¡¶È
double atan(double x) ·µ»ØxµÄ·´ÕýÇÐtan-1(x)Öµ,xΪ»¡¶È
double atan2(double y,double x) ·µ»Øy/xµÄ·´ÕýÇÐtan-1(x)Öµ,yµÄxΪ»¡¶È
d
Ïà¹ØÎĵµ£º
Ç°ÑÔ ²»¶ÏÓÐÍøÓѽ«±àÒëÆ÷ GCC ÎóÈÏΪ IDE£¨¼¯³É¿ª·¢»·¾³£©
ÆÚÍûÍÑÀëÃüÁîÐÐ
ÆÚÍûÄÜÔڲ˵¥Öз¢ÏÖÆäÉíÓ°
ÆÚÍûÆäÄÜÓÐÒ»¸ö¼¯±à¼±àÒëÁ´½Óµ÷ÊÔÔËÐÐÓÚÒ»ÌåµÄ½çÃæ
¹Ê±¾Îĸø´ó¼Ò¼òµ¥ÂÞÁÐһЩ C/C++ ±à³ÌÖпÉÓÃµÄ IDE£¬»òÐíÄã´ÓÖпÉÒÔÕÒÒ»¸öÄãϲ»¶µÄ¡£
Ϊ±ÜÃâÒÔÏÂij¸öÈí¼þ°²×°Ê±²»×Ô¶¯°²×° ......
long longµÄ×î´óÖµ£º9223372036854775807
long longµÄ×îСֵ£º-9223372036854775808
unsigned long longµÄ×î´óÖµ£º1844674407370955161
__int64µÄ×î´óÖµ£º9223372036854775807
__int64µÄ×îСֵ£º-9223372036854775808
unsigned __int64µÄ×î´óÖµ£º18446744073709551615
ÎҵĵçÄÔ¶Ô__int128²»Ö§³Ö£¬Õâ¸ö¿ÉÄÜÊÇÔ¤Áô¸ø½«À ......
1.ÇóÏÂÃ溯ÊýµÄ·µ»ØÖµ£¨Î¢Èí£©
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
}
......
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 100
main()
{
FILE *fp;
if ( (fp = fopen( "c:\\a.txt", "r" )) == NULL ) printf("ERROR!\n");
int tmp[MAXSIZE];
int i;
for ( i=0; i<MAXSIZE; i++ )
{
tmp[i] = 0; ......
3.3 ¸ßЧÂÊ¿ª·¢
ÕâÒ»½Ú½éÉÜÀûÓõ¥Ôª²âÊÔʵÏÖ¸ßЧÂÊ¿ª·¢¡£µ¥Ôª²âÊÔ¿ÉÒÔÔÚ¼¸¸ö·½ÃæÌá¸ß¿ª·¢Ð§ÂÊ£º²âÊÔÇý¶¯¿ª·¢¡¢¿ÉÊÓ±à³Ì¡¢¿ìËÙÅÅ´í¡¢ºÍÌá¸ßµ÷ÊÔЧÂÊ¡£
²âÊÔÇý¶¯¿ª·¢
Ö¸Ïȱàд²âÊÔ´úÂ룬ȻºóÔÙ±àд²úÆ·´úÂëʹ²âÊÔͨ¹ý£¬ÓкܶàÏà¹ØÎÄÕºÍÊé¼®½éÉÜÕâ·½Ãæ֪ʶ£¬ÏÞÓÚ±à·ù£¬ÕâÀï¾Í²»½²ÁË ......