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

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

?? c語言庫函數(shù)(s類字母) - 3.txt

?? C語言庫函數(shù)集.rar 包含所有c語言庫函數(shù)
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
函數(shù)名: sound  
功  能: 以指定頻率打開PC揚聲器  
用  法: void sound(unsigned frequency);  
程序例:  

/* Emits a 7-Hz tone for 10 seconds.  
   Your PC may not be able to emit a 7-Hz tone. */  
#include <dos.h>  

int main(void)  
{  
   sound(7);  
   delay(10000);  
   nosound();  
   return 0;  
}  
   
   
   

函數(shù)名: spawnl  
功  能: 創(chuàng)建并運行子程序  
用  法: int spawnl(int mode, char *pathname, char *arg0,  
     arg1, ... argn, NULL);  
程序例:  

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

int main(void)  
{  
   int result;  

   clrscr();  
   result = spawnl(P_WAIT, "tcc.exe", NULL);  
   if (result == -1)  
   {  
      perror("Error from spawnl");  
      exit(1);  
   }  
   return 0;  
}  
   
   

函數(shù)名: spawnle  
功  能: 創(chuàng)建并運行子程序  
用  法: int spawnle(int mode, char *pathname, char *arg0,  
      arg1,..., argn, NULL);  
程序例:  

/* spawnle() example */  

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

int main(void)  
{  
   int result;  

   clrscr();  
   result = spawnle(P_WAIT, "tcc.exe", NULL, NULL);  
   if (result == -1)  
   {  
      perror("Error from spawnle");  
      exit(1);  
   }  
   return 0;  
}  
   
   
   

函數(shù)名: sprintf  
功  能: 送格式化輸出到字符串中  
用  法: int sprintf(char *string, char *farmat [,argument,...]);  
程序例:  

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

int main(void)  
{  
   char buffer[80];  

   sprintf(buffer, "An approximation of Pi is %f\n", M_PI);  
   puts(buffer);  
   return 0;  
}  
   
   

函數(shù)名: sqrt  
功  能: 計算平方根  
用  法: double sqrt(double x);  
程序例:  

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

 int main(void)  
 {  
    double x = 4.0, result;  

    result = sqrt(x);  
    printf("The square root of %lf is %lf\n", x, result);  
    return 0;  
}  
   

函數(shù)名: srand  
功  能: 初始化隨機數(shù)發(fā)生器  
用  法: void srand(unsigned seed);  
程序例:  

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

int main(void)  
{  
   int i;  
   time_t t;  

   srand((unsigned) time(&t));  
   printf("Ten random numbers from 0 to 99\n\n");  
   for(i=0; i<10; i++)  
       printf("%d\n", rand() % 100);  
   return 0;  
}  
   
   

函數(shù)名: sscanf  
功  能: 執(zhí)行從字符串中的格式化輸入  
用  法: int sscanf(char *string, char *format[,argument,...]);  
程序例:  

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

int main(void)  
{  
   char label[20];  
   char name[20];  
   int entries = 0;  
   int loop, age;  
   double salary;  

   struct Entry_struct  
   {  
      char  name[20];  
      int   age;  
      float salary;  
   } entry[20];  

/* Input a label as a string of characters restricting to 20 characters */  
   printf("\n\nPlease enter a label for the chart: ");  
   scanf("%20s", label);  
   fflush(stdin);  /* flush the input stream in case of bad input */  

/* Input number of entries as an integer */  
   printf("How many entries will there be? (less than 20) ");  
   scanf("%d", &entries);  
   fflush(stdin);   /* flush the input stream in case of bad input */  

/* input a name restricting input to only letters upper or lower case */  
   for (loop=0;loop<entries;++loop)  
   {  
      printf("Entry %d\n", loop);  
      printf("  Name   : ");  
      scanf("%[A-Za-z]", entry[loop].name);  
      fflush(stdin);  /* flush the input stream in case of bad input */  

/* input an age as an integer */  
      printf("  Age    : ");  
      scanf("%d", &entry[loop].age);  
      fflush(stdin);  /* flush the input stream in case of bad input */  

/* input a salary as a float */  
      printf("  Salary : ");  
      scanf("%f", &entry[loop].salary);  
      fflush(stdin); /* flush the input stream in case of bad input */  
   }  

/* Input a name, age and salary as a string, integer, and double */  
   printf("\nPlease enter your name, age and salary\n");  
   scanf("%20s %d %lf", name, &age, &salary);  
   

/* Print out the data that was input */  
   printf("\n\nTable %s\n",label);  
   printf("Compiled by %s  age %d  $%15.2lf\n", name, age, salary);  
   printf("-----------------------------------------------------\n");  
   for (loop=0;loop<entries;++loop)  
      printf("%4d | %-20s | %5d | %15.2lf\n",  
         loop + 1,  
  entry[loop].name,  
  entry[loop].age,  
  entry[loop].salary);  
   printf("-----------------------------------------------------\n");  
   return 0;  
}  
   
   

函數(shù)名: stat  
功  能: 讀取打開文件信息  
用  法: int stat(char *pathname, struct stat *buff);  
程序例:  

#include <sys\stat.h>  
#include <stdio.h>  
#include <time.h>  

#define FILENAME "TEST.$$$"  

int main(void)  
{  
   struct stat statbuf;  
   FILE *stream;  

   /* open a file for update */  
   if ((stream = fopen(FILENAME, "w+")) == NULL)  
   {  
      fprintf(stderr, "Cannot open output file.\n");  
      return(1);  
   }  

   /* get information about the file */  
   stat(FILENAME, &statbuf);  

   fclose(stream);  

   /* display the information returned */  
   if (statbuf.st_mode & S_IFCHR)  
      printf("Handle refers to a device.\n");  
   if (statbuf.st_mode & S_IFREG)  
      printf("Handle refers to an ordinary file.\n");  
   if (statbuf.st_mode & S_IREAD)  
      printf("User has read permission on file.\n");  
   if (statbuf.st_mode & S_IWRITE)  
      printf("User has write permission on file.\n");  

   printf("Drive letter of file: %c\n", 'A'+statbuf.st_dev);  
   printf("Size of file in bytes: %ld\n", statbuf.st_size);  
   printf("Time file last opened: %s\n", ctime(&statbuf.st_ctime));  
   return 0;  
}  
   
   
   

函數(shù)名: _status87  
功  能: 取浮點狀態(tài)  
用  法: unsigned int _status87(void);  
程序例:  

#include <stdio.h>  
#include <float.h>  

int main(void)  
{  
   float x;  
   double y = 1.5e-100;  

   printf("Status 87 before error: %x\n", _status87());  

   x = y;  /* <-- force an error to occur */  
   y = x;  

   printf("Status 87 after error : %x\n", _status87());  
   return 0;  
}  
   
   

函數(shù)名: stime  
功  能: 設置時間  
用  法: int stime(long *tp);  
程序例:  

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

int main(void)  
{  
   time_t t;  
   struct tm *area;  

   t = time(NULL);  
   area = localtime(&t);  
   printf("Number of seconds since 1/1/1970 is: %ld\n", t);  
   printf("Local time is: %s", asctime(area));  

   t++;  
   area = localtime(&t);  
   printf("Add a second:  %s", asctime(area));  

   t += 60;  
   area = localtime(&t);  
   printf("Add a minute:  %s", asctime(area));  

   t += 3600;  
   area = localtime(&t);  
   printf("Add an hour:   %s", asctime(area));  

   t += 86400L;  
   area = localtime(&t);  
   printf("Add a day:     %s", asctime(area));  

   t += 2592000L;  
   area = localtime(&t);  
   printf("Add a month:   %s", asctime(area));  

   t += 31536000L;  
   area = localtime(&t);  
   printf("Add a year:    %s", asctime(area));  
   return 0;  
}  
   
   
   

函數(shù)名: stpcpy  
功  能: 拷貝一個字符串到另一個  
用  法: char *stpcpy(char *destin, char *source);  
程序例:  

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

int main(void)  
{  
   char string[10];  
   char *str1 = "abcdefghi";  

   stpcpy(string, str1);  
   printf("%s\n", string);  
   return 0;  
}  
   
   
   

函數(shù)名: strcat  
功  能: 字符串拼接函數(shù)  
用  法: char *strcat(char *destin, char *source);  
程序例:  

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

int main(void)  
{  
   char destination[25];  
   char *blank = " ", *c = "C++", *Borland = "Borland";  

   strcpy(destination, Borland);  
   strcat(destination, blank);  
   strcat(destination, c);  

   printf("%s\n", destination);  
   return 0;  
}  
   
   
   

函數(shù)名: strchr  
功  能: 在一個串中查找給定字符的第一個匹配之處\  
用  法: char *strchr(char *str, char c);  
程序例:  

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

int main(void)  
 {  
    char string[15];  
    char *ptr, c = 'r';  

    strcpy(string, "This is a string");  
    ptr = strchr(string, c);  
    if (ptr)  
       printf("The character %c is at position: %d\n", c, ptr-string);  
    else  
       printf("The character was not found\n");  
    return 0;  
 }  
   
   
   

函數(shù)名: strcmp  
功  能: 串比較  
用  法: int strcmp(char *str1, char *str2);  
程序例:  

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

int main(void)  
 {  
    char *buf1 = "aaa", *buf2 = "bbb", *buf3 = "ccc";  
    int ptr;  

    ptr = strcmp(buf2, buf1);  
    if (ptr > 0)  
       printf("buffer 2 is greater than buffer 1\n");  
    else  
       printf("buffer 2 is less than buffer 1\n");  

    ptr = strcmp(buf2, buf3);  
    if (ptr > 0)  
       printf("buffer 2 is greater than buffer 3\n");  
    else  
       printf("buffer 2 is less than buffer 3\n");  

    return 0;  
 }  
   
   
   

函數(shù)名: strncmpi  
功  能: 將一個串中的一部分與另一個串比較, 不管大小寫  
用  法: int strncmpi(char *str1, char *str2, unsigned maxlen);  
程序例:  

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

int main(void)  
{  
   char *buf1 = "BBB", *buf2 = "bbb";  
   int ptr;  

   ptr = strcmpi(buf2, buf1);  

   if (ptr > 0)  
      printf("buffer 2 is greater than buffer 1\n");  

   if (ptr < 0)  
      printf("buffer 2 is less than buffer 1\n");  

   if (ptr == 0)  
      printf("buffer 2 equals buffer 1\n");  

   return 0;  
}  
   
   
   

函數(shù)名: strcpy  
功  能: 串拷貝  
用  法: char *strcpy(char *str1, char *str2);  
程序例:  

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

int main(void)  
 {  
    char string[10];  
    char *str1 = "abcdefghi";  

    strcpy(string, str1);  
    printf("%s\n", string);  
    return 0;  
 }  
   
   
   

函數(shù)名: strcspn  
功  能: 在串中查找第一個給定字符集內(nèi)容的段  
用  法: int strcspn(char *str1, char *str2);  
程序例:  

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

int main(void)  
 {  
    char *string1 = "1234567890";  
    char *string2 = "747DC8";  
    int length;  

    length = strcspn(string1, string2);  
    printf("Character where strings intersect is at position %d\n", length);  

    return 0;  
 }  
   
   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合九色综合欧美就去吻 | 精品91自产拍在线观看一区| 高清不卡一区二区| 亚洲人成人一区二区在线观看| 日本精品视频一区二区| 久久精品久久精品| 17c精品麻豆一区二区免费| 欧美中文字幕一二三区视频| 国产毛片精品视频| 日本不卡的三区四区五区| 国产精品家庭影院| 精品久久久久久久人人人人传媒 | 激情综合色播激情啊| 亚洲色图丝袜美腿| 久久一夜天堂av一区二区三区 | 欧美电视剧免费全集观看| 国产成人免费高清| 久久99久国产精品黄毛片色诱| 亚洲在线成人精品| 亚洲激情成人在线| 中文字幕欧美区| 国产亚洲精品资源在线26u| 91精品国产入口| 91精品国产色综合久久久蜜香臀| 色欧美88888久久久久久影院| 成人影视亚洲图片在线| 国产麻豆精品theporn| 精品一区精品二区高清| 日韩国产精品91| 三级亚洲高清视频| 日韩精彩视频在线观看| 人禽交欧美网站| 午夜激情久久久| 高清beeg欧美| 国产在线观看一区二区| 成人午夜在线免费| 欧美三区在线观看| 久久久久青草大香线综合精品| 国产精品电影一区二区| 日韩成人午夜精品| 久久精品国产免费| 成人福利电影精品一区二区在线观看| av男人天堂一区| 911精品产国品一二三产区| 国产蜜臀97一区二区三区 | 亚洲一区二区三区四区在线观看 | 国产精品久久夜| 亚洲成精国产精品女| 国产一区二区电影| 在线精品视频免费播放| 久久久不卡网国产精品二区| 日韩午夜三级在线| 国产精品卡一卡二| 中文字幕一区二区三区不卡在线| 国产精品动漫网站| 美腿丝袜亚洲一区| 久久精品国产亚洲高清剧情介绍| 久久精品国产一区二区| 色播五月激情综合网| 久久久综合激的五月天| 91色porny| 亚洲在线成人精品| 国产拍欧美日韩视频二区| 欧美亚洲一区二区在线观看| 国产乱码精品一区二区三| 亚洲人成小说网站色在线| 日韩精品中午字幕| 91色视频在线| av在线不卡观看免费观看| 久久久久久久久蜜桃| 国产激情一区二区三区桃花岛亚洲| 日韩欧美电影在线| 国产精品小仙女| 亚洲已满18点击进入久久| 欧美日韩精品电影| 婷婷久久综合九色国产成人 | 亚洲精品成人天堂一二三| 亚洲午夜激情av| 在线看国产一区| 亚洲电影一区二区三区| 91精品国产综合久久香蕉麻豆| 久久久亚洲欧洲日产国码αv| 美女网站色91| 国产精品激情偷乱一区二区∴| 成人网在线免费视频| 亚洲美女在线国产| 日韩欧美中文一区二区| 最新热久久免费视频| 国产一区不卡精品| 欧美一区二区三区的| 婷婷国产在线综合| 久久影音资源网| 色94色欧美sute亚洲线路二| 99国产麻豆精品| 久久精品国内一区二区三区| 同产精品九九九| 日韩不卡一二三区| 国产一区二区三区免费观看| 国产在线精品国自产拍免费| 国产精品77777竹菊影视小说| caoporen国产精品视频| av中文字幕在线不卡| 国产伦精品一区二区三区免费迷 | 国产精品婷婷午夜在线观看| 日本丰满少妇一区二区三区| 蜜臀av一区二区| 亚洲欧美自拍偷拍| 91久久线看在观草草青青| 久88久久88久久久| 国内偷窥港台综合视频在线播放| 91精品国产一区二区人妖| 美国毛片一区二区三区| 国产精品乱码人人做人人爱| 久久久精品免费免费| 911精品国产一区二区在线| a4yy欧美一区二区三区| 国产69精品一区二区亚洲孕妇| 天堂成人免费av电影一区| 欧美精品 国产精品| 久草热8精品视频在线观看| 国产三级一区二区| 欧美日韩精品三区| 欧美这里有精品| 在线视频一区二区三| 国产精品久久久久aaaa樱花| 国产日韩成人精品| 亚洲成av人片观看| 精品一区二区三区的国产在线播放 | 丝袜国产日韩另类美女| 国产成人精品网址| 欧美性猛交xxxx黑人交| 欧美日韩大陆在线| 欧美精品粉嫩高潮一区二区| 7777精品伊人久久久大香线蕉完整版| 欧美日韩日日夜夜| 日韩无一区二区| 亚洲欧洲综合另类在线| 亚洲一区二区精品视频| 国产成人精品免费网站| 91精品国产综合久久精品性色| 久久久久亚洲综合| 26uuu欧美| 亚洲黄色录像片| 欧美一级夜夜爽| 国产精品一区二区无线| 国产精品毛片久久久久久久| 色婷婷国产精品久久包臀| 日韩国产在线观看一区| 精品国产伦一区二区三区免费| 成人一区二区视频| 亚洲国产精品欧美一二99| 欧美成人vr18sexvr| 99re热这里只有精品视频| 午夜精彩视频在线观看不卡| 国产欧美日韩精品一区| 欧美三级三级三级爽爽爽| 国产精品亚洲一区二区三区在线| 尤物av一区二区| 国产亚洲精品bt天堂精选| 欧美在线不卡视频| 国产精品自拍网站| 亚洲五月六月丁香激情| 欧美国产激情一区二区三区蜜月| 欧美日韩在线免费视频| 国产成人精品三级麻豆| 日韩黄色在线观看| 中文字幕一区二区三区乱码在线 | 久久久欧美精品sm网站| 欧美亚洲国产一卡| 成人免费高清在线| 蜜臀久久99精品久久久画质超高清| 国产精品国产a| 日韩免费电影网站| 水野朝阳av一区二区三区| 欧美亚洲国产一区二区三区va| 污片在线观看一区二区| 国产色一区二区| 免费成人在线观看| 欧美三区免费完整视频在线观看| 亚洲国产高清aⅴ视频| 亚洲一二三区不卡| 色噜噜久久综合| 亚洲国产日韩a在线播放| 在线欧美日韩精品| 国产乱一区二区| 日韩vs国产vs欧美| 136国产福利精品导航| 欧美变态tickling挠脚心| 91丨九色porny丨蝌蚪| 国产一区二区不卡老阿姨| 亚洲第一狼人社区| 中文字幕一区二区不卡| 精品久久人人做人人爰| 欧美日韩精品免费观看视频| 91视频com| 91麻豆国产精品久久| 国产成人免费在线视频| 日韩一区欧美小说| 欧美图片一区二区三区| 国产在线一区观看|