亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c函數之t.txt

?? C常用函數 多了解一些有好處的
?? TXT
字號:
 函數名: tan 
功 能: 正切函數 
用 法: double tan(double x); 
程序例: 

#include <stdio.h> 
#include <math.h> 

int main(void) 
{ 
double result, x; 

x = 0.5; 
result = tan(x); 
printf("The tan of %lf is %lf\n", x, result); 
return 0; 
} 




函數名: tanh 
功 能: 雙曲正切函數 
用 法: double tanh(double x); 
程序例: 

#include <stdio.h> 
#include <math.h> 

int main(void) 
{ 
double result, x; 

x = 0.5; 
result = tanh(x); 
printf("The hyperbolic tangent of %lf is %lf\n", x, result); 
return 0; 
} 





函數名: tell 
功 能: 取文件指針的當前位置 
用 法: long tell(int handle); 
程序例: 

#include <string.h> 
#include <stdio.h> 
#include <fcntl.h> 
#include <io.h> 

int main(void) 
{ 
int handle; 
char msg[] = "Hello world"; 

if ((handle = open("TEST.$$$", O_CREAT | O_TEXT | O_APPEND)) == -1) 
{ 
perror("Error:"); 
return 1; 
} 
write(handle, msg, strlen(msg)); 
printf("The file pointer is at byte %ld\n", tell(handle)); 
close(handle); 
return 0; 
} 





函數名: textattr 
功 能: 設置文本屬性 
用 法: void textattr(int attribute); 
程序例: 

#include <conio.h> 

int main(void) 
{ 
int i; 

clrscr(); 
for (i=0; i<9; i++) 
{ 
textattr(i + ((i+1) << 4)); 
cprintf("This is a test\r\n"); 
} 

return 0; 
} 




函數名: textbackground 
功 能: 選擇新的文本背景顏色 
用 法: void textbackground(int color); 
程序例: 

#include <conio.h> 

int main(void) 
{ 
int i, j; 

clrscr(); 
for (i=0; i<9; i++) 
{ 
for (j=0; j<80; j++) 
cprintf("C"); 
cprintf("\r\n"); 
textcolor(i+1); 
textbackground(i); 
} 

return 0; 
} 




函數名: textcolor 
功 能: 在文本模式中選擇新的字符顏色 
用 法: void textcolor(int color); 
程序例: 
#include <conio.h> 

int main(void) 
{ 
int i; 

for (i=0; i<15; i++) 
{ 
textcolor(i); 
cprintf("Foreground Color\r\n"); 
} 

return 0; 
} 




函數名: textheight 
功 能: 返回以像素為單位的字符串高度 
用 法: int far textheight(char far *textstring); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int y = 0; 
int i; 
char msg[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); /* terminate with an error code */ 
} 

/* draw some text on the screen */ 
for (i=1; i<11; i++) 
{ 
/* select the text style, direction, and size */ 
settextstyle(TRIPLEX_FONT, HORIZ_DIR, i); 

/* create a message string */ 
sprintf(msg, "Size: %d", i); 

/* output the message */ 
outtextxy(1, y, msg); 

/* advance to the next text line */ 
y += textheight(msg); 
} 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 




函數名: textmode 
功 能: 將屏幕設置成文本模式 
用 法: void textmode(int mode); 
程序例: 

#include <conio.h> 

int main(void) 
{ 
textmode(BW40); 
cprintf("ABC"); 
getch(); 

textmode(C40); 
cprintf("ABC"); 
getch(); 

textmode(BW80); 
cprintf("ABC"); 
getch(); 

textmode(C80); 
cprintf("ABC"); 
getch(); 

textmode(MONO); 
cprintf("ABC"); 
getch(); 

return 0; 
} 



函數名: textwidth 
功 能: 返回以像素為單位的字符串寬度 
用 法: int far textwidth(char far *textstring); 
程序例: 

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 

int main(void) 
{ 
/* request auto detection */ 
int gdriver = DETECT, gmode, errorcode; 
int x = 0, y = 0; 
int i; 
char msg[80]; 

/* initialize graphics and local variables */ 
initgraph(&gdriver, &gmode, ""); 

/* read result of initialization */ 
errorcode = graphresult(); 
if (errorcode != grOk) /* an error occurred */ 
{ 
printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); /* terminate with an error code */ 
} 

y = getmaxy() / 2; 

settextjustify(LEFT_TEXT, CENTER_TEXT); 
for (i=1; i<11; i++) 
{ 
/* select the text style, direction, and size */ 
settextstyle(TRIPLEX_FONT, HORIZ_DIR, i); 

/* create a message string */ 
sprintf(msg, "Size: %d", i); 

/* output the message */ 
outtextxy(x, y, msg); 

/* advance to the end of the text */ 
x += textwidth(msg); 
} 

/* clean up */ 
getch(); 
closegraph(); 
return 0; 
} 



函數名: time 
功 能: 取一天的時間 
用 法: logn time(long *tloc); 
程序例: 

#include <time.h> 
#include <stdio.h> 
#include <dos.h> 

int main(void) 
{ 
time_t t; 

t = time(NULL); 
printf("The number of seconds since January 1, 1970 is %ld",t); 
return 0; 
} 




函數名: tmpfile 
功 能: 以二進制方式打開暫存文件 
用 法: FILE *tmpfile(void); 
程序例: 

#include <stdio.h> 
#include <process.h> 

int main(void) 
{ 
FILE *tempfp; 

tempfp = tmpfile(); 
if (tempfp) 
printf("Temporary file created\n"); 
else 
{ 
printf("Unable to create temporary file\n"); 
exit(1); 
} 

return 0; 
} 




函數名: tmpnam 
功 能: 創建一個唯一的文件名 
用 法: char *tmpnam(char *sptr); 
程序例: 

#include <stdio.h> 

int main(void) 
{ 
char name[13]; 

tmpnam(name); 
printf("Temporary name: %s\n", name); 
return 0; 
} 




函數名: tolower 
功 能: 把字符轉換成小寫字母 
用 法: int tolower(int c); 
程序例: 

#include <string.h> 
#include <stdio.h> 
#include <ctype.h> 

int main(void) 
{ 
int length, i; 
char *string = "THIS IS A STRING"; 

length = strlen(string); 
for (i=0; i<length; i++) 
{ 
string[i] = tolower(string[i]); 
} 
printf("%s\n",string); 

return 0; 
} 



函數名: toupper 
功 能: 把字符轉換成大寫字母 
用 法: int toupper(int c); 
程序例: 

#include <string.h> 
#include <stdio.h> 
#include <ctype.h> 

int main(void) 
{ 
int length, i; 
char *string = "this is a string"; 

length = strlen(string); 
for (i=0; i<length; i++) 
{ 
string[i] = toupper(string[i]); 
} 

printf("%s\n",string); 

return 0; 
} 



函數名: tzset 
功 能: UNIX時間兼容函數 
用 法: void tzset(void); 
程序例: 

#include <time.h> 
#include <stdlib.h> 
#include <stdio.h> 

int main(void) 
{ 
time_t td; 

putenv("TZ=PST8PDT"); 
tzset(); 
time(&td); 
printf("Current time = %s\n", asctime(localtime(&td))); 
return 0; 
}  

更多的函數

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费看黄yyy456| 亚洲欧洲美洲综合色网| 色中色一区二区| 99综合影院在线| 成人网在线免费视频| 成人免费三级在线| 99久久综合狠狠综合久久| av网站免费线看精品| 99re亚洲国产精品| 在线中文字幕一区二区| 欧美色手机在线观看| 9191精品国产综合久久久久久| 在线观看日韩高清av| 在线免费一区三区| 6080日韩午夜伦伦午夜伦| 91精品国产色综合久久ai换脸 | 欧美日韩国产区一| 在线不卡中文字幕播放| 欧美一区二区不卡视频| 欧美成人女星排名| 亚洲国产岛国毛片在线| 玉足女爽爽91| 久久福利视频一区二区| 福利一区二区在线| 在线欧美日韩精品| 日韩欧美亚洲另类制服综合在线| 久久久久久久综合| 亚洲精品国产一区二区精华液| 性做久久久久久久免费看| 国产综合色产在线精品| 在线观看一区不卡| 精品第一国产综合精品aⅴ| 国产精品三级久久久久三级| 亚洲综合免费观看高清完整版| 久草在线在线精品观看| 成人av免费在线| 欧美疯狂性受xxxxx喷水图片| 国产欧美日本一区二区三区| 亚洲影视在线播放| 国产传媒一区在线| 制服丝袜中文字幕亚洲| 国产精品第五页| 精一区二区三区| 欧美三级电影精品| 国产精品另类一区| 老司机免费视频一区二区| 91免费看`日韩一区二区| 精品国产乱码久久| 亚洲成av人片在www色猫咪| 国产不卡在线播放| 精品久久久久久亚洲综合网| 亚洲一二三四区不卡| 成人va在线观看| 久久综合九色综合欧美亚洲| 亚洲一区二区三区四区五区中文| 国产99精品视频| 欧美变态凌虐bdsm| 五月开心婷婷久久| 在线视频综合导航| 亚洲视频网在线直播| 成人永久免费视频| 精品三级在线看| 另类综合日韩欧美亚洲| 3atv在线一区二区三区| 亚洲精品视频在线看| av在线不卡网| 亚洲国产精品成人综合色在线婷婷| 久久精品噜噜噜成人av农村| 884aa四虎影成人精品一区| 一区二区三区日韩在线观看| 99国产一区二区三精品乱码| ㊣最新国产の精品bt伙计久久| 国产黄色成人av| 精品久久久久久久久久久久久久久久久| 亚洲一二三四区不卡| 欧美日韩亚洲丝袜制服| 亚洲国产精品麻豆| 欧美三级日韩三级| 日韩精品一区第一页| 欧美一区二区久久| 秋霞电影网一区二区| 欧美一级精品大片| 久久国产成人午夜av影院| 久久免费视频色| 国产suv一区二区三区88区| 国产精品污网站| 一本一本久久a久久精品综合麻豆| 亚洲色图欧美偷拍| 欧美视频在线播放| 秋霞电影网一区二区| 精品国产91九色蝌蚪| 成人教育av在线| 亚洲色欲色欲www在线观看| 日本丶国产丶欧美色综合| 一区二区成人在线视频| 69久久夜色精品国产69蝌蚪网| 日韩成人av影视| 日本一区二区在线不卡| 色乱码一区二区三区88| 五月天久久比比资源色| 精品日本一线二线三线不卡| 国产不卡视频在线观看| 亚洲综合色区另类av| 精品国产乱码久久久久久影片| 国产a区久久久| 天天亚洲美女在线视频| 久久久精品日韩欧美| 欧美专区亚洲专区| 久久精品av麻豆的观看方式| 亚洲欧洲精品成人久久奇米网| 91超碰这里只有精品国产| 粉嫩av一区二区三区在线播放| 亚洲一区欧美一区| 久久九九99视频| 欧美日韩久久一区| 国产传媒一区在线| 视频一区中文字幕国产| 久久久久久毛片| 91国在线观看| 风流少妇一区二区| 午夜精品福利一区二区三区蜜桃| 久久久久国产精品麻豆ai换脸| 欧美日韩一区二区三区不卡| 粉嫩嫩av羞羞动漫久久久| 日韩不卡在线观看日韩不卡视频| 亚洲色图在线视频| 久久午夜羞羞影院免费观看| 欧美日韩一级黄| 91理论电影在线观看| 国产成人av网站| 精品在线免费视频| 亚洲中国最大av网站| 国产精品成人免费在线| 日韩欧美一区电影| 欧美视频一区在线| 一本到不卡免费一区二区| 成人毛片老司机大片| 国内不卡的二区三区中文字幕| 日韩综合一区二区| 亚洲精品国产a久久久久久| 国产精品久久久久9999吃药| 久久久久久久久蜜桃| 精品国产亚洲在线| 欧美久久久久免费| 欧美日本乱大交xxxxx| 欧美日韩一级黄| 在线观看日韩毛片| 欧美私人免费视频| 欧美性猛交xxxx乱大交退制版| 成人黄色免费短视频| 成人黄色777网| av不卡在线播放| 91丨porny丨中文| 国产一区二区按摩在线观看| 激情亚洲综合在线| 热久久久久久久| 狠狠色2019综合网| 国产精品一区二区你懂的| 国产一区二区视频在线播放| 国产精品一区二区男女羞羞无遮挡| 九九久久精品视频| 国产精品一线二线三线精华| 国产盗摄精品一区二区三区在线| 国产精品亚洲专一区二区三区| 国产精品亚洲第一区在线暖暖韩国 | 国产日产欧美一区二区三区| 26uuu国产电影一区二区| 久久久亚洲精品石原莉奈| 久久精品视频在线看| 一区在线观看免费| 亚洲视频在线一区观看| 亚洲综合偷拍欧美一区色| 亚瑟在线精品视频| 精品一区二区三区在线观看| 大尺度一区二区| 在线视频国内一区二区| 欧美日韩综合在线| 精品女同一区二区| 中文字幕第一区第二区| 亚洲午夜日本在线观看| 精品亚洲国产成人av制服丝袜| 国产成人综合在线观看| 日本久久精品电影| 欧美日韩精品专区| 久久先锋影音av鲁色资源网| 中文字幕亚洲区| 日本不卡免费在线视频| 国产高清在线精品| 欧美日韩的一区二区| 国产亚洲欧洲997久久综合| 亚洲一区二区视频在线观看| 国产在线视频精品一区| 欧美午夜宅男影院| 久久综合九色综合97婷婷| 亚洲自拍偷拍综合| 国产成人av电影在线观看| 欧美日韩久久久一区| 国产亲近乱来精品视频| 亚洲国产美女搞黄色| eeuss影院一区二区三区|