C语言函数 - C开头函数名: cabs功 能: 计算复数的绝对值用 法: double cabs(struct complex z);程序例:#include <stdio.h>#include <math.h>int main(void){ struct complex z; double val; z.
转载
精选
2013-05-30 22:32:26
672阅读
函数名: cabs
功能: 计算复数的绝对值
用法: double cabs(struct complex z);
程序例:
#include
#include
int main(void)
{
struct complex z;
doubl
转载
2010-08-08 23:29:24
636阅读
函数名: abort
功能: 异常终止一个进程
用法: void abort(void);
程序例:
#include
#include
int main(void)
{
printf("Calling abort()\n");
abort(
转载
2010-08-08 23:26:09
538阅读
C语言函数 - A开头函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例:#include <stdio.h>#include <stdlib.h>int main(void){ printf("Calling abort()\n"); abort(); &nb
转载
精选
2013-05-30 22:31:24
630阅读
函数名: ecvt
功能: 把一个浮点数转换为字符串
用法: char ecvt(double value, int ndigit, int *decpt, int *sign);
程序例:
#include
#include
#include
转载
2010-08-08 23:32:04
432阅读
函数名: parsfnm
功能: 分析文件名
用法: char *parsfnm (char *cmdline, struct fcb *fcbptr, int option);
程序例:
#include
#include
#include
转载
2010-08-08 23:35:53
540阅读
函数名: tell
功能: 取文件指针的当前位置
用法: long tell(int handle);
程序例:
#include
#include
#include
#include
int main(void)
{
int handle
转载
2010-08-08 23:38:12
439阅读
C语言函数 - I开头函数名: p_w_picpathsize功 能: 返回保存位图像所需的字节数用 法: unsigned far p_w_picpathsize(int left, int top, int right, int bottom);程序例:#include <graphics.h>#include <stdlib.h>#includ
转载
精选
2013-05-30 22:36:08
528阅读
点赞
C语言函数 - O开头函数名: open功 能: 打开一个文件用于读或写用 法: int open(char *pathname, int access[, int permiss]);程序例:#include <string.h>#include <stdio.h>#include <fcntl.h>#include <io.h&
转载
精选
2013-05-30 22:38:10
500阅读
目录函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例:#include stdio.h> tf("Calling abort()\n"); //输出 abort();
原创
2023-01-04 11:02:06
94阅读
函数名: delay
功能: 将程序的执行暂停一段时间(毫秒)
用法: void delay(unsigned milliseconds);
程序例:
/* Emits a 440-Hz tone for 500 milliseconds */
#i
转载
2010-08-08 23:30:22
379阅读
double fabs(double x);
返回双精度x的绝对值。
void far *farcalloc(unsigned long nunits,unsigned long unitsz);
堆中给含有nu从远nits个元素的,每个元素占用unit
转载
2010-08-08 23:31:09
533阅读
函数名: gcvt
功能: 把浮点数转换成字符串
用法: char *gcvt(double value, int ndigit, char *buf);
程序例:
#include
#include
int main(void)
{
char
转载
2010-08-08 23:32:35
500阅读
函数名: p_w_picpathsize
功能: 返回保存位图像所需的字节数
用法: unsigned far p_w_picpathsize(int left, int top, int right, int bottom);
程序例:
#inclu
转载
2010-08-08 23:33:49
504阅读
main()主函数
每一C程序都必须有一main()函数, 可以根据自己的爱好把它放在程序的某个地方。有些程序员把它放在最前面, 而另一些程序员把它放在最后面, 无论放在哪个地方, 以下几点说明都是适合的。
1.main()参数
在Turbo C2.0启
转载
2010-08-08 23:34:38
481阅读
C语言函数 - B开头函数名: bar功 能: 画一个二维条形图用 法: void far bar(int left, int top, int right, int bottom);程序例:#include <graphics.h>#include <stdlib.h>#include <stdio.h>#include <con
转载
精选
2013-05-30 22:31:53
529阅读
C语言函数 - H开头函数名: harderr功 能: 建立一个硬件错误处理程序用 法: void harderr(int (*fptr)());程序例:/*This program will trap disk errors and promptthe user for action. Try running it with nodisk in drive A: to i
转载
精选
2013-05-30 22:35:13
714阅读
C语言函数 - K开头函数名: kbhit功 能: 检查当前按下的键用 法: int kbhit(void);程序例:#include <conio.h>int main(void){ cprintf("Press any key to continue:"); while (!kbhit()) /* do not
转载
精选
2013-05-30 22:36:43
790阅读
目录函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例:#include stdi
原创
2023-01-04 11:02:05
68阅读
函数名: bar
功能: 画一个二维条形图
用法: void far bar(int left, int top, int right, int bottom);
程序例:
#include
#include
#include
#include
转载
2010-08-08 23:28:53
337阅读