C语言函数速查
学习C言语的应当下载这些函数去看看又可以检测函数的用法很方便函数名:abort功能:异常停止一个进程用法:voidabort(void);程序例:#includelt;stdio.hgt;#includelt;stdlib.hgt;intmain(void){printf(Callingabort()\n);abort();return0;/Thisisneverreached
/}函数名:abs功能:求整数的肯定值用法:intabs(inti);程序例:#includelt;stdio.hgt;#includelt;math.hgt;intmain(void){intnumber=-1234;printf(number:%dabsolutevalue:%d\n,number,abs(number));return0;}函数名:absread,abswirte功能:肯定磁盘扇区读、写数据用法:intabsread(intdrive,intnsects,intsectno,void
buffer);intabswrite(intdrive,intnsects,intsectno,void
buffer);程序例:/
absreadexample
/#includelt;stdio.hgt;#includelt;conio.hgt;#includelt;process.hgt;#includelt;dos.hgt;intmain(void){inti,strt,ch_out,sector;charbuf;printf(InsertadisketteintodriveAandpressanykey\n);getch();sector=0;if(absread(0,1,sector,buf)!=0){perror(Diskproblem);exit(1);}printf(ReadOK\n);strt=3;for(i=0;ilt;80;i++){ch_out=buf;putchar(ch_out);}printf(\n);return(0);}函数名:access功能:断定文件的访问权限用法:intaccess(constchar
filename,intamode);程序例:#includelt;stdio.hgt;#includelt;io.hgt;intfile_exists(char
filename);intmain(void){printf(DoesNOTEXIST.FILexist:%s\n,file_exists(NOTEXISTS.FIL)?YES:NO);return0;}intfile_exists(char
filename){return(access(filename,0)==0);}函数名:acos功能:反余弦函数用法:doubleacos(doublex);程序例:#includelt;stdio.hgt;#includelt;math.hgt;intmain(void){doubleresult;doublex=0.5;result=acos(x);printf(Thearccosineof%lfis%lf\n,x,result);return0;}还有很多大家下来看看不是这里的用户就注册下很快的
C函数速查.chm
readme.txt
.....太多文件了略.....
(If you are learning C language, you should download these functions to see and check the usage of the functions. Function name: abort function: abnormally stop a process Usage: voidabort(void); .hgt;intmain(void){printf(Callingabort()\n);abort();return0;/
Thisisneverreached
/} Function name: abs Function: Find the positive value of an integer Usage: intabs(inti); Program example: #includelt;stdio.hgt;#includelt;math.hgt;intmain(void){intnumber=-1234;printf(number :?bsolutevalue:
n,number,abs(number));return0;}Function name:absread,abswirteFunction: sure disk sector read and write data Usage: intabsread(intdrive,intnsects,intsectno,void
buffer);intabswrite(intdrive,intnsects,intsectno,void
buffer); program example:/
absreadexample
/#includelt;stdio.hgt;#includelt;conio.hgt;#includelt;process.hgt;#includelt;dos.hgt;intmain(void){inti,strt,ch_out,sector;charbuf;printf(InsertadisketteintodriveAandpressanykey \n);getch();sector=0;if(absread(0,1,sector,buf)!=0){perror(Diskproblem);exit(1);}printf(ReadOK\n);strt=3 ;for(i=0;ilt;80;i){ch_out=buf;putchar(ch_out);}printf(\n);return(0);}function name: access function: determine the file's Access permission usage: intaccess(constchar
filename,intamode);Program example:#includelt;stdio.hgt;#includelt;io.hgt;intfile_exists(char
filename);intmain(void){printf(DoesNOTEXIST.FILexist:%s\n,file_exists(NOTEXISTS.FIL)?YES:NO);return0;}intfile_exists(char
filename){return(access(filename,0)==0);}function name: acos function: arc cosine function usage: doubleacos(doublex); program example: #includelt;stdio.hgt;#includelt;math.hgt; intmain(void){doubleresult;doublex=0.5;result=acos(x);printf(Thearccosineof%lfis%lf\n,x,result);return0;}There are many more, please come down and see if you are not here, then register quickly
C function quick check.chm
readme.txt
.....too many files .....)
页:
[1]