C语言函数大全p开头Word文档格式.docx
- 文档编号:18261957
- 上传时间:2022-12-14
- 格式:DOCX
- 页数:15
- 大小:18.64KB
C语言函数大全p开头Word文档格式.docx
《C语言函数大全p开头Word文档格式.docx》由会员分享,可在线阅读,更多相关《C语言函数大全p开头Word文档格式.docx(15页珍藏版)》请在冰豆网上搜索。
path
-
ie.
a:
file.dat)\n"
);
gets(line);
put
in
if
(parsfnm(line,
&
blk,
1)
==
NULL)
Error
parsfm
call\n"
else
Drive
#%d
Name:
%11s\n"
blk.fcb_drive,
blk.fcb_name);
return
0;
}
peek
检查存储单元
peek(int
segment,
unsigned
offset);
conio.h>
value
=
The
current
status
of
your
keyboard
is:
\n"
peek(0x0040,
0x0017);
(value
Right
shift
on\n"
off\n"
2)
Left
4)
Control
key
8)
Alt
16)
Scroll
lock
32)
Num
64)
Caps
peekb
(int
peekb(0x0040,
perror
系统错误信息
void
perror(char
*string);
FILE
*fp;
fp
fopen("
perror.dat"
"
r"
(!
fp)
perror("
Unable
to
open
for
reading"
pieslice
绘制并填充一个扇形
far
pieslice(int
x,
stanle,
endangle,
radius);
graphics.h>
stdlib.h>
request
auto
detection
gdriver
DETECT,
gmode,
errorcode;
midx,
midy;
stangle
45,
endangle
135,
radius
100;
initialize
graphics
local
variables
initgraph(&
gdriver,
read
result
initialization
errorcode
graphresult();
(errorcode
!
grOk)
an
error
occurred
Graphics
error:
%s\n"
grapherrormsg(errorcode));
Press
any
halt:
getch();
exit
(1);
terminate
with
code
midx
getmaxx()
/
2;
midy
getmaxy()
set
fill
style
draw
a
pie
slice
setfillstyle(EMPTY_FILL,
getmaxcolor());
pieslice(midx,
midy,
stangle,
clean
up
closegraph();
poke
存值到一个给定存储单元
poke(int
offset,
value);
clrscr();
cprintf("
Make
sure
the
scroll
is
off
press
key\r\n"
poke(0x0000,0x0417,16);
now
on\r\n"
pokeb
pokeb(int
pokeb(0x0000,0x0417,16);
poly
根据参数产生一个多项式
double
poly(double
n,
c[]);
math.h>
polynomial:
x**3
2x**2
+
5x
1
array[]
-1.0,
5.0,
-2.0,
1.0
};
result;
poly(2.0,
3,
array);
2.0x**2
at
2.0
%lf\n"
result);
pow
指数函数(x的y次方)
pow(double
y);
x
2.0,
y
3.0;
%lf
raised
y,
pow(x,
y));
pow10
指数函数(10的p次方)
pow10(int
p);
p
Ten
p,
pow10(p));
printf
产生格式化输出的函数
printf(char
*format...);
#define
I
555
R
5.5
i,j,k,l;
buf[7];
*prefix
buf;
tp[20];
prefix
6d
6o
8x
10.2e
10.2f\n"
strcpy(prefix,"
%"
(i
i
i++)
(j
j
j++)
(k
k
k++)
(l
l
l++)
(i==0)
strcat(prefix,"
-"
(j==0)
+"
(k==0)
#"
(l==0)
0"
%5s
|"
prefix);
strcpy(tp,prefix);
strcat(tp,"
printf(tp,I);
strcpy(tp,"
printf(tp,R);
10.2f
putc
输出一字符到指定流中
putc(int
ch,
*stream);
msg[]
Hello
world\n"
;
while
(msg[i])
putc(msg[i++],
stdout);
putch
输出字符到控制台
putch(int
ch);
ch
Input
string:
((ch
'
\r'
))
putch(ch);
putchar
在stdout上输出字符
putchar(int
define
some
box-drawing
characters
LEFT_TOP
0xDA
RIGHT_TOP
0xBF
HORIZ
0xC4
VERT
0xB3
LEFT_BOT
0xC0
RIGHT_BOT
0xD9
i,
j;
top
box
putchar(LEFT_TOP);
(i=0;
i<
10;
putchar(HORIZ);
putchar(RIGHT_TOP);
putchar('
\n'
middle
4;
putchar(VERT);
(j=0;
j<
bottom
putchar(LEFT_BOT);
putchar(RIGHT_BOT);
putenv
把字符串加到当前环境中
putenv(char
*envvar);
alloc.h>
*path,
*ptr;
environment
ptr
getenv("
PATH"
new
malloc(strlen(ptr)+15);
strcpy(path,"
PATH="
strcat(path,ptr);
strcat(path,"
c:
\\temp"
replace
display
putenv(path);
(environ[i])
environ[i++]);
putimage
在屏幕上输出一个位图
putimage(int
*bitmap,
op);
ARROW_SIZE
10
draw_arrow(int
autodetection
*arrow;
x,
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言 函数 大全 开头