⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 w.htm

📁 C语言函数库,包含所有的C语言函数
💻 HTM
字号:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body bgcolor="#00FFFF" text="#000080">

<PRE><font size="5"><a href="a.htm">A</a> <a href="b.htm">B</a> <a href="c.htm">C</a> <a href="d.htm">D</a> <a href="e.htm">E</a> <a href="f.htm">F</a> <a href="g.htm">G</a> <a href="h.htm">H</a> <a href="i.htm">I</a> <a href="k.htm">K</a> <a href="l.htm">L</a> <a href="m.htm">M</a> <a href="n.htm">N</a> <a href="o.htm">O</a> <a href="p.htm">P</a> <a href="q.htm">Q</a> <a href="r.htm">R</a> <a href="s.htm">S</a> <a href="t.htm">T</a> <a href="u.htm">U</a> <a href="v.htm">V</a> <a href="w.htm">W</a> </font></PRE>

<PRE> </PRE>

<PRE>函数大全(w开头)
</PRE>
<PRE>函数名: <font size="5" color="#FF0000">wherex </font>
功 能: 返回窗口内水平光标位置 
用 法: int wherex(void); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ 
clrscr(); 
gotoxy(10,10); 
cprintf(&quot;Current location is X: %d Y: %d\r\n&quot;, wherex(), wherey()); 
getch(); </PRE>
<PRE>return 0; 
} 


</PRE>
<PRE>函数名: <font size="5" color="#FF0000">wherey </font>
功 能: 返回窗口内垂直光标位置 
用 法: int wherey(void); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ 
clrscr(); 
gotoxy(10,10); 
cprintf(&quot;Current location is X: %d Y: %d\r\n&quot;, wherex(), wherey()); 
getch(); </PRE>
<PRE>return 0; 
} 


</PRE>
<PRE>函数名:<font size="5" color="#FF0000"> window </font>
功 能: 定义活动文本模式窗口 
用 法: void window(int left, int top, int right, int bottom); 
程序例: </PRE>
<PRE>#include </PRE>
<PRE>int main(void) 
{ </PRE>
<PRE>window(10,10,40,11); 
textcolor(BLACK); 
textbackground(WHITE); 
cprintf(&quot;This is a test\r\n&quot;); </PRE>
<PRE>return 0; 
} 


</PRE>
<PRE>函数名: <font size="5" color="#FF0000">write </font>
功 能: 写到一文件中 
用 法: int write(int handel, void *buf, int nbyte); 
程序例: </PRE>
<PRE>#include 
#include 
#include 
#include 
#include 
#include </PRE>
<PRE>int main(void) 
{ 
int handle; 
char string[40]; 
int length, res; </PRE>
<PRE>/* 
Create a file named &quot;TEST.$$$&quot; in the current directory and write 
a string to it. If &quot;TEST.$$$&quot; already exists, it will be overwritten. 
*/ </PRE>
<PRE>if ((handle = open(&quot;TEST.$$$&quot;, O_WRONLY | O_CREAT | O_TRUNC, 
S_IREAD | S_IWRITE)) == -1) 
{ 
printf(&quot;Error opening file.\n&quot;); 
exit(1); 
} </PRE>
<PRE>strcpy(string, &quot;Hello, world!\n&quot;); 
length = strlen(string); </PRE>
<PRE>if ((res = write(handle, string, length)) != length) 
{ 
printf(&quot;Error writing to the file.\n&quot;); 
exit(1); 
} 
printf(&quot;Wrote %d bytes to the file.\n&quot;, res); </PRE>
<PRE>close(handle); 
return 0; 
} </PRE>
<PRE>struct xfcb {</PRE>
<PRE>char xfcb_flag; /* Contains 0xff to indicate xfcb */</PRE>
<PRE>char xfcb_resv[5]; /* Reserved for DOS */</PRE>
<PRE>char xfcb_attr; /* Search attribute */</PRE>
<PRE>struct fcb xfcb_fcb; /* The standard fcb */</PRE>
<PRE>};






</PRE>

<PRE><font size="5"><a href="a.htm">A</a> <a href="b.htm">B</a> <a href="c.htm">C</a> <a href="d.htm">D</a> <a href="e.htm">E</a> <a href="f.htm">F</a> <a href="g.htm">G</a> <a href="h.htm">H</a> <a href="i.htm">I</a> <a href="k.htm">K</a> <a href="l.htm">L</a> <a href="m.htm">M</a> <a href="n.htm">N</a> <a href="o.htm">O</a> <a href="p.htm">P</a> <a href="q.htm">Q</a> <a href="r.htm">R</a> <a href="s.htm">S</a> <a href="t.htm">T</a> <a href="u.htm">U</a> <a href="v.htm">V</a> <a href="w.htm">W</a> </font></PRE>

<PRE>
</PRE>
<pre>资料收集:beck Copyright 2004 张求熙, All Rights Reserved</pre>
<pre><a href="mailto:Email:qiuxi1984@126.com">Email:qiuxi1984@126.com</a>     QQ:35540948 </pre>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -