求c语言函数大全 c语言求函数值( 四 )


函数138 。sin()
函数139 。sprintf()格式化输出到数组的函数
函数140 。strcat()
函数141 。tan()
函数142 。_write()写文件函数
函数143 。write()写文件函数
原文释义请到百度文库里搜寻字串“C语言常用函数”后下载
函数51-60因原注里排序号码少编求c语言函数大全 , 所以只有133个常用函数 。
DOC大小是119.5KB
贡献时间求c语言函数大全:2010-09-10
贡献者求c语言函数大全:handanlinzhang
C语言常用词汇及函数有那些?常用词汇:
1、short:修饰int,短整型数据,可省略被修饰的int 。
2、long:修饰int,长整型数据,可省略被修饰的int 。
3、long long:修饰int,超长整型数据,可省略被修饰的int 。
4、signed:修饰整型数据,有符号数据类型 。
5、unsigned:修饰整型数据,无符号数据类型 。
6、restrict:用于限定和约束指针,并表明指针是访问一个数据对象的唯一且初始的方式 。
7、return:用在函数体中,返回特定值(如果是void类型,则不返回函数值) 。
8、continue:结束当前循环,开始下一轮循环 。
9、break:跳出当前循环或switch结构 。
10、goto:无条件跳转语句 。
11、if:条件语句,后面不需要放分号 。
12、else:条件语句否定分支(与if连用) 。
13、switch:开关语句(多重分支语句) 。
14、case:开关语句中的分支标记,与switch连用 。
15、default:开关语句中的“其他”分支,可选 。
常用函数:
1、int isalpha(int ch) 若ch是字母('A'-'Z','a'-'z'),返回非0值,否则返回0 。
2、int isalnum(int ch) 若ch是字母('A'-'Z','a'-'z')或数字('0'-'9') , 返回非0值,否则返回0 。
3、int abs(int i) 返回整型参数i的绝对值 。
4、double cabs(struct complex znum) 返回复数znum的绝对值 。
5、double fabs(double x) 返回双精度参数x的绝对值 。
6、long labs(long n) 返回长整型参数n的绝对值 。
参考资料来源:百度百科—C语言
求C语言函数大全函数名: abort
功能: 异常终止一个进程
用法: void abort(void);
程序例:
#include stdio.h
#include stdlib.h
int main(void)
{
printf("Calling abort()\n");
abort();
return 0; /* This is never reached */
}
函数名: abs
功能: 求整数的绝对值
用法: int abs(int i);
程序例:
#include stdio.h
#include math.h
int main(void)
{
int number = -1234;
printf("number: %dabsolute value: %d\n", number, abs(number));
return 0;
}
函数名: absread, abswirte
功能: 绝对磁盘扇区读、写数据
用法: int absread(int drive, int nsects, int sectno, void *buffer);
int abswrite(int drive, int nsects, in tsectno, void *buffer);
程序例:
/* absread example */
【求c语言函数大全 c语言求函数值】#include stdio.h
#include conio.h
#include process.h
#include dos.h
int main(void)
{
int i, strt, ch_out, sector;
char buf[512];
printf("Insert a diskette into drive A and press any key\n");
getch();
sector = 0;
if (absread(0, 1, sector, buf) != 0)
{
perror("Disk problem");
exit(1);
}
printf("Read OK\n");
strt = 3;
for (i=0; i80; i++)
{
ch_out = buf[strt+i];
putchar(ch_out);
}
printf("\n");
return(0);
}
函数名: access
功能: 确定文件的访问权限
用法: int access(const char *filename, int amode);
程序例:
#include stdio.h
#include io.h
int file_exists(char *filename);

推荐阅读