- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
C语言函数大全-d开头-完整版
C语言函数大全 d开头
函数名: delay
功能: 将程序的执行暂停一段时间 毫秒
用法: void delay unsigned milliseconds ;
程序例:
/* Emits a 440-Hz tone for 500 milliseconds */#includeint main void sound 440 ;delay 500 ;nosound ;return 0;
函数名: delline
功能: 在文本窗口中删去一行
用法: void delline void ;
程序例:
#includeint main void clrscr ;cprintf The function DELLINE deletes \the line containing the\r\n ;cprintf cursor and moves all lines \below it one line up.\r\n ;cprintf DELLINE operates within the \currently active text\r\n ;cprintf window. Press any key to \continue . . . ;gotoxy 1,2 ; /* Move the cursor to thesecond line and first column */getch ;delline ;getch ;return 0;
函数名: detectgraph
功能: 通过检测硬件确定图形驱动程序和模式
用法: void far detectgraph int far *graphdriver, int far *graphmode ;
程序例:
#include#include#include#include/* names of the various cards supported */char *dname[] requests detection,a CGA,an MCGA,an EGA,a 64K EGA,a monochrome EGA,an IBM 8514,a Hercules monochrome,an ATT 6300 PC,a VGA,an IBM 3270 PC ;int main void /* returns detected hardware info. */int gdriver, gmode, errorcode;/* detect graphics hardware available */detectgraph gdriver, gmode ;/* read result of detectgraph call */errorcode graphresult ;if errorcode ! grOk /* an erroroccurred */ printf Graphics error: %s\n, \grapherrormsg errorcode ;printf Press any key to halt: ;getch ;exit 1 ; /* terminate with an errorcode */ /* display the information detected */clrscr ;printf You have %s video display \card.\n, dname[gdriver] ;printf Press any key to halt: ;getch ;return 0;
函数名: difftime
功能: 计算两个时刻之间的时间差
用法: double difftime time_t time2, time_t time1 ;
程序例:
#include#include#include#includeint main void time_t first, second;clrscr ;first time NULL ; /* Gets systemtime */delay 2000 ; /* Waits 2 secs */second time NULL ; /* Gets system timeagain */printf The difference is: %f \seconds\n,difftime second,first ;getch ;return 0;
函数名: disable
功能: 屏蔽
文档评论(0)