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

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

?? chap12.lst

?? Borland C++ Builder The Complete Reference 例程源代碼
?? LST
字號:
listing 1
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isalnum(ch)) printf("%c is alphanumeric\n", ch); 
  } 
 
  return 0; 
}

listing 2
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isalpha(ch)) printf("%c is a letter\n", ch); 
  } 
 
  return 0; 
}

listing 3
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isascii(ch)) printf("%c is ASCII defined\n", ch); 
  } 
 
  return 0; 
}

listing 4
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(iscntrl(ch)) printf("%c is a control character\n", ch); 
  } 
 
  return 0; 
}

listing 5
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isdigit(ch)) printf("%c is a digit\n", ch); 
  } 
 
  return 0; 
}

listing 6
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isgraph(ch)) printf("%c is a printing character\n", ch); 
  } 
 
  return 0; 
}

listing 7
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(islower(ch)) printf("%c is lowercase\n", ch); 
  } 
 
  return 0; 
}

listing 8
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isprint(ch)) printf("%c is printable\n", ch); 
  } 
 
  return 0; 
}

listing 9
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(ispunct(ch)) printf("%c is punctuation\n", ch); 
  } 
 
  return 0; 
}

listing 10
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch=='.') break; 
    if(isspace(ch)) printf("%c is white-space\n", ch); 
  } 
 
  return 0; 
}

listing 11
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isupper(ch)) printf("%c is upper-case\n", ch); 
  } 
 
  return 0; 
}

listing 12
#include <ctype.h> 
#include <stdio.h> 
 
int main(void) 
{ 
  char ch; 
 
  for(;;) { 
    ch = getchar(); 
    if(ch==' ') break; 
    if(isxdigit(ch)) printf("%c is hexadecimal \n", ch); 
  } 
 
  return 0; 
}

listing 13
char str[20], out[20]; 
strcpy(str, "hello there"); 
memccpy(out, str,' ', 20);

listing 14
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  void *p; 
 
  p = memchr("this is a test", ' ', 14); 
  printf((char *) p); 
 
  return 0; 
}

listing 15
#include <stdio.h> 
#include <string.h> 
 
int main(int argc, char *argv[]) 
 
{ 
  int outcome; 
  size_t len, l1, l2; 
 
  if(argc != 3) { 
    printf("Use two command-line args."); 
    return 1; 
  } 
 
  /* find the length of shortest */ 
  len = (l1=strlen(argv[1]))<(l2=strlen(argv[2])) ? l1:l2; 
 
  outcome = memcmp(argv[1], argv[2], len); 
  if(!outcome) printf("equal"); 
  else if(outcome<0) printf("First less than second.\n"); 
  else printf("First greater than second\n"); 
 
  return 0; 
}

listing 16
#include <stdio.h> 
#include <string.h> 
#define SIZE 80 
 
int main(void) 
{ 
  char buf1[SIZE], buf2[SIZE]; 
 
  strcpy(buf1, "When, in the course of..."); 
  memcpy(buf2, buf1, SIZE); 
  printf(buf2); 
 
  return 0; 
}

listing 17
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char str1[40], str2[40]; 
 
  strcpy(str1, "Born to code in C/C++."); 
  memmove(str2, str1, strlen(str1)+1); 
  printf(str2); 
 
  return 0; 
}

listing 18
memset(buf, '\0', 100); 
memset(buf, 'X', 10); 
printf((char *) buf);

listing 19
char str[8]; 
stpcpy(str, "hello");

listing 20
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char s1[80], s2[80]; 
 
  gets(s1); 
  gets(s2); 
 
  strcat(s2, s1); 
  printf(s2); 
 
  return 0; 
}

listing 21
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char *p; 
 
  p = strchr("this is a test", ' '); 
  printf(p); 
 
  return 0; 
}

listing 22
int password(void) 
{ 
  char s[80]; 
 
  printf("Enter password: "); 
  gets(s); 
  if(strcmp(s, "pass")) { 
    printf("Invalid password.\n"); 
    return 0; 
  } 
  return 1; 
}

listing 23
char str[80]; 
strcpy(str, "hello");

listing 24
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  int len; 
 
  len = strcspn("this is a test", "ab"); 
  printf("%d", len); 
 
  return 0; 
}

listing 25
char str[80], *p; 
strcpy(str, "this is a test"); 
p = strdup(str);

listing 26
void swap() 
{ 
  /* ... */ 
  if(error) printf(_strerror("Error in swap."));

listing 27
if(errno) printf(strerror(errno));

listing 28
#include <stdio.h> 
#include <string.h> 
 
int main(int argc, char *argv[]) 
{ 
 
  if(argc != 3) { 
    printf("Use two command-line args."); 
    return 1; 
  } 
 
  if(!stricmp(argv[1], argv[2])) 
    printf("The filenames are the same.\n"); 
  else 
    printf("The filenames differ.\n"); 
 
  return 0; 
}

listing 29
strcpy(s, "hello"); 
printf("%d", strlen(s));

listing 30
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char s[80]; 
 
  strcpy(s, "THIS IS A TEST"); 
  strlwr(s); 
  printf(s); 
 
  return 0; 
}

listing 31
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char s1[80], s2[80]; 
  size_t len; 
 
  gets(s1); 
  gets(s2); 
 
  /* compute how many chars will actually fit */ 
  len = 79-strlen(s2); 
 
  strncat(s2, s1, len); 
  printf(s2); 
 
  return 0; 
}

listing 32
#include <stdio.h> 
#include <string.h> 
 
int main(int argc, char *argv[]) 
{ 
  if(argc != 3) { 
    printf("Use two command-line args."); 
    return 1; 
  } 
 
  if(!strnicmp(argv[1], argv[2], 8)) 
    printf("The filenames are the same.\n"); 
  else 
    printf("The filenames differ.\n"); 
 
  return 0; 
}

listing 33
char str1[128], str2[80]; 
gets(str1); 
strncpy(str2, str1, 79);

listing 34
strnset(str, 'x', 10);

listing 35
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char *p; 
 
  p = strpbrk("this is a test", " absj"); 
  printf(p); 
 
  return 0; 
}

listing 36
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char *p; 
 
  p = strrchr("this is a test", 'i'); 
  printf(p); 
 
  return 0; 
}

listing 37
#include <stdio.h> 
#include <string.h> 
 
char s[] = "hello"; 
 
int main(void) 
{ 
  strrev(s); 
  printf(s); 
 
  return 0; 
}

listing 38
strset(str, 'x');

listing 39
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  int len; 
 
  len = strspn("this is a test", "siht "); 
  printf("%d",len); 
 
  return 0; 
}

listing 40
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char *p; 
 
  p = strstr("this is a test", "is"); 
  printf(p); 
 
  return 0; 
}

listing 41
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char *p; 
 
  p = strtok("The summer soldier, the sunshine patriot"," "); 
  printf(p); 
  do { 
    p=strtok('\0', ", "); 
    if(p) printf("|%s", p); 
  } while(p); 
 
  return 0; 
}

listing 42
#include <stdio.h> 
#include <string.h> 
 
int main(void) 
{ 
  char s[80]; 
 
  strcpy(s, "this is a test"); 
  strupr(s); 
  printf(s); 
 
  return 0; 
}

listing 43
putchar(tolower('Q'));

listing 44
putchar(toupper('a'));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频网在线直播| 粉嫩欧美一区二区三区高清影视| 久久99久久精品欧美| 国产夫妻精品视频| 欧美日韩国产精品自在自线| 国产精品日韩成人| 精品一区二区久久| 欧美区在线观看| 亚洲视频在线观看三级| 国内精品写真在线观看| 欧美性生活久久| 国产精品蜜臀av| 国产做a爰片久久毛片| 欧美日韩国产一二三| **性色生活片久久毛片| 国产精品99久久不卡二区| 在线播放中文字幕一区| 洋洋成人永久网站入口| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 蜜桃视频第一区免费观看| 日本高清无吗v一区| 中文字幕一区免费在线观看| 狠狠网亚洲精品| 日韩视频在线永久播放| 婷婷六月综合网| 91国偷自产一区二区开放时间| 亚洲国产精品av| 成人在线视频一区二区| 国产欧美日韩激情| 精品亚洲成a人在线观看| 欧美一区二区女人| 日韩电影免费在线观看网站| 欧美日韩国产影片| 天天免费综合色| 91精品国产福利在线观看| 亚洲成av人在线观看| 在线免费观看日本一区| 亚洲乱码国产乱码精品精98午夜| 成人免费看片app下载| 国产精品久久久久aaaa| 成人黄色777网| 亚洲男女一区二区三区| 色婷婷久久一区二区三区麻豆| 亚洲靠逼com| 欧美性色综合网| 午夜精品国产更新| 欧美一区日韩一区| 美腿丝袜在线亚洲一区| 久久久久国产免费免费| 99视频一区二区| 亚洲影视在线播放| 91精品国产综合久久精品| 蜜臀精品久久久久久蜜臀| 精品国产一区二区在线观看| 国产伦理精品不卡| 亚洲日本在线观看| 欧美三区免费完整视频在线观看| 午夜国产精品一区| 久久久久国产精品人| 99久久99久久免费精品蜜臀| 天天影视网天天综合色在线播放| 精品久久久久久久久久久久久久久 | 国产成人在线免费观看| 亚洲天天做日日做天天谢日日欢 | 亚洲精品写真福利| 91精品国产丝袜白色高跟鞋| 国产一区二区在线观看视频| 国产精品久久久久精k8| 51精品久久久久久久蜜臀| 国产成人精品免费看| 亚洲午夜激情网页| 精品一区二区三区免费视频| √…a在线天堂一区| 色婷婷精品大在线视频| 日韩高清在线不卡| 国产精品久久久久一区| 777色狠狠一区二区三区| 国产激情视频一区二区在线观看| 一个色在线综合| 久久亚洲影视婷婷| 欧美日韩国产中文| 不卡的电影网站| 美女国产一区二区三区| 亚洲色图都市小说| 欧美精品一区二区三区在线播放| 色婷婷久久一区二区三区麻豆| 久久激情五月婷婷| 亚洲综合色噜噜狠狠| 久久精品水蜜桃av综合天堂| 4438x亚洲最大成人网| 91视视频在线直接观看在线看网页在线看 | 欧美日韩免费一区二区三区| 国产成人精品免费| 蜜臀久久久久久久| 亚洲一区二区三区三| 国产精品系列在线| 久久午夜色播影院免费高清| 欧美一区二区三区在线观看| 欧美在线不卡视频| 久久亚洲一区二区三区明星换脸| 欧美唯美清纯偷拍| 91论坛在线播放| 成人免费看片app下载| 久久99精品国产.久久久久久| 午夜精品免费在线| 亚洲国产一区二区视频| 亚洲精品高清在线| 亚洲色图.com| 亚洲欧洲国产日韩| 国产精品传媒在线| 国产精品福利电影一区二区三区四区| 国产日韩亚洲欧美综合| 久久在线观看免费| 精品人在线二区三区| 日韩欧美国产高清| 欧美大片在线观看| 精品入口麻豆88视频| 精品美女在线播放| 久久精品一区二区三区av| 久久人人爽爽爽人久久久| 久久久午夜电影| 国产拍欧美日韩视频二区| 久久精品人人做人人爽人人| 国产日韩欧美a| 日本一区二区久久| 亚洲人吸女人奶水| 亚洲福利视频一区二区| 免费一级欧美片在线观看| 日本成人在线视频网站| 狠狠色伊人亚洲综合成人| 国产成人免费视频一区| 99久久久久久| 欧美图片一区二区三区| 日韩一级片网址| 国产丝袜美腿一区二区三区| 欧美激情中文字幕一区二区| 自拍偷在线精品自拍偷无码专区 | 国产农村妇女精品| 国产精品短视频| 亚洲永久免费视频| 日本成人中文字幕| 国产乱子伦一区二区三区国色天香 | 欧美性猛片aaaaaaa做受| 欧美精品18+| 久久精品网站免费观看| 亚洲美女区一区| 美女性感视频久久| 国产精品一区二区免费不卡| 91香蕉视频在线| 欧美一级日韩一级| 国产精品免费视频网站| 亚洲成a人片在线观看中文| 久久99九九99精品| 97久久久精品综合88久久| 欧美人妖巨大在线| 国产精品进线69影院| 午夜精品久久久久久久久| 风间由美一区二区av101 | 精品日韩99亚洲| 亚洲免费看黄网站| 精品一二线国产| 在线观看网站黄不卡| 国产日韩欧美高清在线| 亚洲国产成人av网| 成人免费毛片高清视频| 91精品免费在线观看| 国产精品国产自产拍高清av| 免费观看在线综合| 日本精品一级二级| 国产日韩欧美a| 老司机午夜精品99久久| 欧美优质美女网站| 中文字幕中文字幕一区| 久久精品国产精品亚洲红杏| 欧洲精品视频在线观看| 久久精品视频免费| 老汉av免费一区二区三区| 欧美午夜一区二区| 国产精品美女久久久久久久| 久久精工是国产品牌吗| 欧美日韩卡一卡二| 一区二区三区在线看| 风流少妇一区二区| 久久九九影视网| 另类小说图片综合网| 91精品久久久久久久99蜜桃| 亚洲中国最大av网站| 99久久伊人久久99| 日本一区免费视频| 国产成人在线视频播放| 欧美精品一区二区久久久| 日韩一级高清毛片| 在线观看三级视频欧美| 成人免费在线视频观看| 丁香婷婷深情五月亚洲| 久久久国产精品午夜一区ai换脸| 九九**精品视频免费播放| 精品毛片乱码1区2区3区 | 亚洲18女电影在线观看| 在线观看亚洲一区|