日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

g开头的C语言编程软件,C语言函数大全(g开头)

發布時間:2023/12/20 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 g开头的C语言编程软件,C语言函数大全(g开头) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

函數名: gcvt

功 能: 把浮點數轉換成字符串

用 法: char *gcvt(double value, int ndigit, char *buf);

程序例:

#include

#include

int main(void)

{

char str[25];

double num;

int sig = 5; /* significant digits */

/* a regular number */

num = 9.876;

gcvt(num, sig, str);

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

/* a negative number */

num = -123.4567;

gcvt(num, sig, str);

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

/* scientific notation */

num = 0.678e5;

gcvt(num, sig, str);

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

return(0);

}

函數名: geninterrupt

功 能: 產生一個軟中斷

用 法: void geninterrupt(int intr_num);

程序例:

#include

#include

/* function prototype */

void writechar(char ch);

int main(void)

{

clrscr();

gotoxy(80,25);

writechar(’*’);

getch();

return 0;

}

/*

outputs a character at the current cursor

position using the video BIOS to avoid the

scrolling of the screen when writing to

location (80,25).

*/

void writechar(char ch)

{

struct text_info ti;

/* grab current text settings */

gettextinfo(&ti);

/* interrupt 0x10 sub-function 9 */

_AH = 9;

/* character to be output */

_AL = ch;

_BH = 0; /* video page */

_BL = ti.attribute; /* video attribute */

_CX = 1; /* repetition factor */

geninterrupt(0x10); /* output the char */

}

C語言函數大全(g開頭).doc

下載Word文檔到電腦,方便收藏和打印[全文共753字]

編輯推薦:

下載Word文檔

總結

以上是生活随笔為你收集整理的g开头的C语言编程软件,C语言函数大全(g开头)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。