| C语言库函数(A类字母) |
|
| 作者:未知 文章来源:网络收集 点击数: 更新时间:2006-3-29 15:22:23
|
Minutes */ t.tm_hour = 9; /* Hour */ t.tm_mday = 22; /* Day of the Month */ t.tm_mon = 11; /* Month */ t.tm_year = 56; /* Year - does not include century */ t.tm_wday = 4; /* Day of the week */ t.tm_yday = 0; /* Does not show in asctime */ t.tm_isdst = 0; /* Is Daylight SavTime; does not show in asctime */
/* converts structure to null terminated string */
strcpy(str, asctime(&t)); printf("%s\n", str);
return 0; }
函数名: asin 功 能: 反正弦函数 用 法: double asin(double x); 程序例: #include #include
int main(void) { double result; double x = 0.5;
result = asin(x); printf("The arc sin of %lf is %lf\n", x, result); return(0); }
函数名: assert 功 能: 测试一个条件并可能使程序终止 用 法: void assert(int test); 程序例: #include #include #include
struct ITEM { int key; int value; };
/* add item to list, make sure list is not null */ void additem(struct ITEM *itemptr) { assert(itemptr != NULL); /* add item to list */ }
int main(void) { additem(NULL); return 0; }
函数名: atan 功 能: 反正切函数 用 法: double atan(double x); 程序例: #include #include
int main(void) { double result; double x = 0.5;
result = atan(x); printf("The arc tangent of %lf is %lf\n", x, result); return(0); }
函数名: atan2 功 能: 计算Y/X的反正切值 用 法: double atan2(double y, double x); 程序例: #include #include
int main(void) { double result; double x = 90.0, y = 45.0;
result = atan2(y, x); printf("The arc tangent ratio of %lf is %lf\n", (y / x), result); return 0; }
函数名: atexit 功 能: 注册终止函数 用 法: int atex上一页 [1] [2] [3] [4] 下一页
|
|
[ 收藏此页到: 天天|和讯|博采|ViVi|狐摘|我摘|天极 ] 文章录入:kinda 责任编辑:kinda |
|
上一篇文章: Win9x病毒--Win95.LockIEPage.878原代码 下一篇文章: C语言库函数(B类字母) |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |