PowerPoint Presentation

Size: px
Start display at page:

Download "PowerPoint Presentation"

Transcription

1 程序设计 II 第 4 讲字符串处理 计算机学院黄章进 zhuang@ustc.edu.cn

2 内容 字符串处理函数 例题 :Caesar 密码 2767 例题 : 单词排序 例题 : 子串 2744 例题 :All in All

3 字符串 每个字符串是一个特殊的数组, 满足两个条件 元素的类型为 char 最后一个元素的值为 '\0',Ascii 码就是 0 以字符型数组存储 从 0 号元素开始存储 最大可以存储长度为 N-1 的字符串,N 是数组的大小 字符串 "hello" 在长度为 10 的字符串数组中的存储 h e l l o \0 3

4 字符串的读与写 Writing a string is easy using either printf or puts. Reading a string is a bit harder, because the input may be longer than the string variable into which it s being stored. To read a string in a single step, we can use either scanf or gets. As an alternative, we can read strings one character at a time.

5 用 printf 和 puts 写字符 串 字符串的读与写 The %s conversion specification allows printf to write a string: char str[] = "Are we having fun yet?"; printf("%s\n", str); The output will be Are we having fun yet? printf writes the characters in a string one by one until it encounters a null character.

6 用 printf 和 puts 写字符 串 字符串的读与写 To print part of a string, use the conversion specification %.ps. p is the number of characters to be displayed. The statement printf("%.6s\n", str); will print Are we

7 用 printf 和 puts 写字符 串 字符串的读与写 The %ms conversion will display a string in a field of size m. If the string has fewer than m characters, it will be right-justified within the field. To force left justification instead, we can put a minus sign in front of m. The m and p values can be used in combination. A conversion specification of the form %m.ps causes the first p characters of a string to be displayed in a field of size m.

8 用 printf 和 puts 写字符 串 字符串的读与写 printf isn t the only function that can write strings. The C library also provides puts: puts(str); After writing a string, puts always writes an additional new-line character.

9 用 scanf 和 gets 读字符 串 字符串的读与写 The %s conversion specification allows scanf to read a string into a character array: scanf("%s", str); str is treated as a pointer, so there s no need to put the & operator in front of str. When scanf is called, it skips white space, then reads characters and stores them in str until it encounters a white-space character. scanf always stores a null character at the end of the string.

10 用 scanf 和 gets 读字符 串 字符串的读与写 scanf won t usually read a full line of input. A new-line character will cause scanf to stop reading, but so will a space or tab character. To read an entire line of input, we can use gets. Properties of gets: Doesn t skip white space before starting to read input. Reads until it finds a new-line character. Discards the new-line character instead of storing it; the null character takes its place.

11 用 scanf 和 gets 读字符 串 字符串的读与写 Consider the following program fragment: char sentence[sent_len+1]; printf("enter a sentence:\n"); scanf("%s", sentence); Suppose that after the prompt Enter a sentence: the user enters the line To C, or not to C: that is the question. scanf will store the string "To" in sentence.

12 用 scanf 和 gets 读字符 串 字符串的读与写 Suppose that we replace scanf by gets: gets(sentence); When the user enters the same input as before, gets will store the string " To C, or not to C: that is the question." in sentence.

13 用 scanf 和 gets 读字符 串 字符串的读与写 As they read characters into an array, scanf and gets have no way to detect when it s full. Consequently, they may store characters past the end of the array, causing undefined behavior. scanf can be made safer by using the conversion specification %ns instead of %s. n is an integer indicating the maximum number of characters to be stored. gets is inherently unsafe; fgets is a much better alternative.

14 字符串处理函数 #include <string.h> 将格式化数据写入字符串 :sprintf 字符串长度查询函数 : strlen 字符串复制函数 :strcpy strncpy 字符串连接函数 : strcat 字符串比较函数 : strcmp strncmp _stricmp _strnicmp 字符串搜索函数 : strcspn strspn strstr strtok strchr 字符串大小写转换函数 : strlwr strupr 14

15 字符串拷贝和求字符 串长度 char *strcpy(char *dest, const char *src); int strlen(const char *s); #include <stdio.h> #include <string.h> int main() { char str1[10]="hello", str2[12]; strcpy(str2, "hello world"); printf("length: %d(str1); %d(str2)\n", strlen(str1), strlen(str2)); strcpy(str1, str2); printf("length: %d(str1); %d(str2)\n", strlen(str1), strlen(str2)); printf("%s\n", str1); return 0; 把 "hello world" 复制到 str2 把 str2 复制到 str1 查询 str1 中字符串的长度 } 15

16 strcpy 输出结果 : length: 5(str1); 11(str2) length: 11(str1); 11(str2) hello world str1 存储了 11 个非 '\0' 字符? strcpy 在复制字符串 str2 到 str1 时, 不检查 str2 是否超出了 str1 的存储容量, 而是直接将 str2 中存储的字符串复制到从 str1 开始的一段连续区域 在程序中要特别注意这种情况所引发的程序运行不确定性 16

17 strcpy main() str1 h e l l o \0 str2 strcpy(str2, hello world"); str1 h e l l o \0 str2 h e l l o w o r l d \0 strcpy(str1,str2); str1 h e l l o w o r l d \0 str2 h e l l o w o r l d \0

18 用 strlen 时常犯的错误 int MyStrchr(char *s, char c) // 看 s 中是否包含 c { int i; for ( i = 0; i < strlen(s) ; i ++ ) if ( s[i] == c) return 1; return 0; } 哪里不好? 这个函数执行时间和 s 的长度是什么关系? strlen 是一个 O(N) 的函数, 每次判断 i < strlen(s) 都要执行, 太浪费时间了 18

19 字符串添加 strcat char *strcat(char *dest, const char *src); 把 src 内容加到 dest 后面, 同样不会考虑 dest 是 否够长 #include <stdio.h> #include <string.h> int main() { char str1[100]="hello", str2[10]="^_^"; strcat(str1, " world "); printf("%s\n", str1); strcat(str1, str2); printf("%s\n", str1); return 0; 把 " world " 添加到 str1 中原字符串的末尾 把 str2 中的字符串添加到 str1 中原字符串的末尾 输出 : hello world hello world ^_^ } 19

20 字符串比较函数 int strcmp(const char *s1, const char *s2); 区分大小写 If s1 is... return value is... less than s2 < 0 the same as s2 == 0 greater than s2 > 0 int _stricmp(const char *s1, const char *s2); 不分大小写, 不是标准 C 库函数 20

21 字符串比较函数 #include <string.h> #include <stdio.h> char string1[] = "The quick brown dog jumps over the lazy fox"; char string2[] = "The QUICK brown dog jumps over the lazy fox"; int main( void ) { int result; printf( "Compare strings:\n\t%s\n\t%s\n\n", string1, string2 ); result = strcmp( string1, string2 ); printf( "strcmp: result=%d\n", result); result = _stricmp( string1, string2 ); printf( "stricmp: result=%d\n", result); return 0; } 21

22 字符串比较函数 输出 : Compare strings: The quick brown dog jumps over the lazy fox The QUICK brown dog jumps over the lazy fox strcmp: result=1 stricmp: result=0 22

23 查找子串 strstr char *strstr(char *s1, char *s2); 查找给定字符串在字符串中第一次出现的位置, 返回位置指针 如果找到, 返回指针, 指向 s1 中第一次出现 s2 的位置 如果找不到, 返回 NULL 23

24 查找子串 strstr #include <string.h> #include <stdio.h> char str[] = "lazy"; char string[] = "The quick brown dog jumps over the lazy fox"; int main( void ) { char *pdest; int result; pdest = strstr( string, str ); result = pdest - string + 1; if ( pdest!= NULL ) 输出 : lazy found at position 36 printf( "%s found at position %d\n\n", str, result ); else printf( "%s not found\n", str ); return 0; } 24

25 查找字符 strchr char *strchr(char *s, int c); 查找给定字符在字符串中第一次出现的位置, 返回位置指针 如果找到, 返回指针, 指向 c 在 s 中第一次出现的位置 如果找不到, 返回 NULL 25

26 查找字符 strchr #include <string.h> #include <stdio.h> int ch = 'r'; char string[] = "The quick brown dog jumps over the lazy fox"; int main( void ) { } char *pdest; int result; pdest = strchr( string, ch ); result = pdest - string + 1; if( pdest!= NULL ) printf( "Result:\tfirst %c found at position %d\n\n", ch, result ); else printf( "Result:\t%c not found\n" ); return 0; 输出 : Result: first r found at position 12 26

27 字符串部分拷贝 strncpy char *strncpy(char *dest, char *src, int maxlen); 将前 maxlen 个字符从 src 拷贝到 dest 如果 src 中字符不足 maxlen 个, 则连 '\0' 一起拷贝, '\0' 后面的不拷贝 如果 src 中字符大于等于 maxlen 个, 则拷贝 maxlen 个字符 返回值 :dest 的地址 27

28 字符串部分拷贝 strncpy #include <string.h> #include <stdio.h> int main(void) { char s1[20] = " "; char s2[] = "abcd" ; strncpy( s1, s2, 5); printf("%s\n", s1); strcpy( s1, " "); strncpy( s1, s2, 4); printf("%s\n", s1); return 0; } 输出 : abcd abcd

29 数组作为函数参数 #include <stdio.h> char str1[200] = "Hello, World"; char str2[100] = "Computer"; void swap( char s1[ ], char *s2) // 交换两个字符串的内容 { char c; int i; for ( i = 0; s1[i] s2[i]; i++ ){ // '\0' 的 Ascii 码就是 0 c = s2[i]; s2[i] = s1[i]; s1[i] = c; } s1[i+1] = s2[i+1] = 0; } int main() { swap(str1, str2); printf("%s\n%s\n", str1, str2); return 0; } 输出 : Computer Hello, World 29

30 例题 :Caesar 密码 问题描述 Julius Caesar 生活在充满危险和阴谋的年代 为了生存, 他首次发明了密码, 用于军队的消息传递 假设你是 Caesar 军团中的一名军官, 需要把 Caesar 发送的消息破译出来 消息加密的办法 : 对消息原文中的每个字母, 分别用该字母之后的第 5 个字母替换 ( 例如 : 消息原文中的每个字母 A 都分别替换成字母 F,V 替换成 A, W 替换成 B ), 其他字符不变, 并且消息原文的所有字母都是大写的 30

31 Caesar 密码 密码字母 :A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 原文字母 :V W X Y Z A B C D E F G H I J K L M N O P Q R S T U 输入 最多不超过 100 个数据集组成 每个数据集由 3 部分组成 起始行 :START 密码消息 : 由 1 到 200 个字符组成一行, 表示 Caesar 发出的一条消息 结束行 :END 在最后一个数据集后, 是另一行 :ENDOFINPUT 输出 每个数据集对应一行, 是 Caesar 的原始消息 31

32 Caesar 密码 输入样例 START NS BFW, JAJSYX TK NRUTWYFSHJ FWJ YMJ WJXZQY TK YWNANFQ HFZXJX END START N BTZQI WFYMJW GJ KNWXY NS F QNYYQJ NGJWNFS ANQQFLJ YMFS XJHTSI NS WTRJ END START IFSLJW PSTBX KZQQ BJQQ YMFY HFJXFW NX RTWJ IFSLJWTZX YMFS MJ END ENDOFINPUT 输出样例 IN WAR, EVENTS OF IMPORTANCE ARE THE RESULT OF TRIVIAL CAUSES I WOULD RATHER BE FIRST IN A LITTLE IBERIAN VILLAGE THAN SECOND IN ROME DANGER KNOWS FULL WELL THAT CAESAR IS MORE DANGEROUS THAN 32 HE

33 Caesar 密码 问题分析 关键是识别输入数据中的消息行 读入消息行的数据 输入数据中, 每个消息行包括多个单词 以及若干个标点符号 识别非字母符号 采用哪种输入函数, 可以用 scanf 吗? 33

34 2767 Caesar 密码 #include<stdio.h> #include<string.h> int main(void) { char s[201]; char map[] = "VWXYZABCDEFGHIJKLMNOPQRSTU"; while(1) { gets(s); if (strcmp(s, "ENDOFINPUT")==0) break; if (strcmp(s, "START")==0 strcmp(s, "END")==0) int len = strlen(s); for (int i = 0; i < len; i++) { if (s[i] >= A && s[i] <= Z ) // 请写出下一行代码 continue; else printf("%c", s[i]); } printf("\n"); } return 0; } 34

35 例题 : 单词排序 输入若干行单词 ( 不含空格 ), 请按字典序排序输出 大小写有区别 单词一共不超过 100 行, 每个单词不超过 20 字符 输入样例 What man Tell About back 输出样例 About Tell What back man 35

36 单词排序 用什么保存多个单词? 采用二维字符数组 char Word[100][21]; 则表达式 Word[i] 的类型就是 char[21] Word[i] 就是数组中的一行, 就是一个字符串 Word[i][0] 就是 Word[i] 这个字符串的头一个字符 如何排序? qsort 36

37 qsort 函数 qsort 函数是 ANSI C 标准库中提供的可给任意数组排序的通用函数, 声明在 stdlib.h 文件中 因为数组元素可能是任何类型的, 必须告诉 qsort 如何确定两个数组元素哪一个 更小 通过传递给 qsort 一个比较函数指针 37

38 qsort 函数 void qsort( void *base, size_t nelem, size_t size, int (*comp)(const void *,const void *) ); 对数组按升序排序 base 指向待排序数组的第一个元素 nelem 待排序元素的个数 size 数组元素的大小 ( 字节数 ) comp 指向比较函数的指针 int comp(const void *a, const void *b); *a 小于 *b, 返回负整数值 *a 等于 *b, 返回 0 *a 大于 *b, 返回正整数值 38

39 qsort 函数 #include <stdio.h> #include <stdlib.h> int compare_ints(const void* a, const void* b) { int arg1 = *(const int*)a; int arg2 = *(const int*)b; return (arg1 - arg2); } int main(void) { int i, ints[] = { -2, 99, 0, -743, 2, 3, 4 }; int size = sizeof ints / sizeof *ints; qsort(ints, size, sizeof(int), compare_ints); for (i = 0; i < size; i++) { printf("%d ", ints[i]); } printf("\n"); return EXIT_SUCCESS; } 输出 :

40 单词排序 #include <stdlib.h> #include <stdio.h> #include <string.h> int MyCompare( const void *e1, const void *e2 ) { // 请写出下一行代码 } int main() { int n = 0; // 单词个数 char Words[100][21]; } 为了处理有可能最后一行读入的是空行 while (scanf("%s", Words[n])!= EOF && Words[n][0]) n++; qsort(words, n, sizeof(words[0]), MyCompare); for ( int i = 0; i < n; i++ ) printf("%s\n", Words[i]); return 0; 40

41 例题 : 子串 问题描述 现有一些由英文字符组成的大小写敏感的字符串的集合 s, 请找到一个最长的字符串 x, 使得对于 s 中任意字符串 y,x 或者是 y 的子串, 或者 x 中的字符反序之后得到的新字符串是 y 的子串 输入 第一行是一个整数 t (1 <= t <= 10),t 表示测试数据组的数目 对于每一组测试数据, 第一行是一个整数 n (1 <= n <= 100), 表示给出 n 个字符串 接下来 n 行, 每行给出一个长度在 1 和 100 之间的字符串 输出 对于每一组测试数据, 输出一行, 给出题目中要求的字符串 x 的长度 41

42 子串 输入样例 2 3 ABCD BCDFF BRCD 2 rose orchid 输出样例

43 子串 思路 : 随便拿出输入数据中的一个字符串, 从长到短找出它的所有子串, 直到找到否符合题目要求的子串 改进 : 不要随便拿, 要拿输入数据中最短的那个 从长到短找出它的所有子串, 直到找到否符合题目要求的子串 43

44 2744 子串 #include <stdio.h> #include <string.h> #include <stdbool.h> int searchmaxsubstring(char* source); int n; char str[100][101]; int main(){ int i, t, minstrlen, substrlen; char minstr[101]; // 最短字符串 scanf("%d", &t); while(t--) { scanf("%d", &n); minstrlen = 100; // 记录输入数据中最短字符串的长度 for (i = 0; i < n; i++) { // 输入一组字符串 scanf("%s", str[i]); if ( strlen(str[i]) < minstrlen ) { // 找其中最短字符串 strcpy(minstr, str[i]); minstrlen = strlen(minstr); } } substrlen = searchmaxsubstring(minstr); // 找答案 printf("%d\n", substrlen); } return 0; } 44

45 子串 int searchmaxsubstring(char* source){ int substrlen = strlen(source), sourcestrlen = strlen(source); int i, j; char substr[101], revsubstr[101]; while ( substrlen > 0 ) { // 搜索不同长度的子串, 从最长的子串开始搜索 for (i = 0; i <= sourcestrlen - substrlen; i++) { // 搜索长度为 substrlen 的全部子串 strncpy(substr, source+i, substrlen); strncpy(revsubstr, source+i, substrlen); substr[substrlen] = revsubstr[substrlen] = '\0'; strrev1(revsubstr); // 将字符串反序, 也可调用非标准 C 库函数 _strrev bool foundmaxsubstr = true; for (j = 0; j < n; j++) // 遍历所有输入的字符串 if (strstr(str[j], substr) == NULL && strstr(str[j], revsubstr) == NULL ) { foundmaxsubstr = false; break; } if (foundmaxsubstr) return substrlen; } substrlen--; } return 0; } 45

46 子串 char *strrev1(char *source) { char temp[200]; int i, len = strlen(source); strcpy(temp, source); for(i = 0; i < len; i++) source[i] = temp[len-1-i]; } return source; 46

47 例题 :All in All 问题描述 给定两个字符串 s 和 t, 请判断 s 是否是 t 的子序列 即从 t 中删除一些字符, 将剩余的字符连接起来, 即可获得 s 输入 包括若干个测试数据 每个测试数据由两个 ASCII 码的数字和字母串 s 和 t 组成, s 和 t 的长度不超过 输出 对每个测试数据, 如果 s 是 t 的子序列则输出 "Yes", 否则输出 "No" 47

48 All in All 输入样例 :s t sequence subsequence person compression VERDI vivavittorioemanuelerediitalia casedoesmatter CaseDoesMatter 输出样例 Yes No Yes No 48

49 All in All 思路 关键是看 t 中是否可以找到 s 的所有字符, 而且顺序与 s 一致 设两个指针, 分别指向 s 和 t 的开头 t 的指针不停向前每次移动一个字符, 如果 t 的指针指向的字符和 s 的指针指向的字符相同, 则将 s 的指针向前移动一个字符 直到 s 的指针指向末尾的 '\0', 说明 Yes; 或 t 的指针指向末尾的 '\0' 时,s 的指针还没有指到末尾, 说明 No 49

50 2976 All in All #include <stdio.h> int main() { int i, j; // i 指向 s, j 指向 t char s[100001], t[100001]; while (scanf( %s%s, s, t) > 0 ) { // 请写出循环体代码 } } return 0; 50

51 bsearch 函数 C 语言中可以用 bsearch 实现二分查找 同 qsort 一样,bsearch 也包含在 <stdlib.h> 库中, 且同样要自定义比较函数 bsearch 函数在有序数组中搜索一个特定的值 ( 键 ) qsort 函数可以对任何数组进行排序 可以在 bsearch 函数搜索数组之前先用 qsort 函数对其进行排序 51

52 bsearch 函数 void* bsearch( const void *key, const void *base, size_t nelem, size_t size, int (*comp)(const void*, const void*) ); 在有序数组中查找值等于 *key 的元素 key 指向键值 base 指向待查找数组的第一个元素 nelem 待查找元素的个数 size 数组元素的大小 ( 字节数 ) comp 指向比较函数的指针 待查找数组必须是已按照 comp 规则 升序 排序 返回值 : 一个指向与键匹配的元素的指针 ; 找不到, 则返回空指针 若有多个元素与键值相等, 返回哪个元素的指针是未定的 52

53 bsearch 函数 #include <stdio.h> #include <stdlib.h> int compare(const void *p, const void *q) { return (*(int *)p - *(int *)q); } int main(void) { int array[8] = {9, 2, 7, 11, 3, 87, 34, 6}; int key = 3; int *p; qsort(array, 8, sizeof(int), compare); 输出 : found p = (int *) bsearch(&key, array, 8, sizeof(int), compare); (p == NULL)? puts("not found") : puts("found"); return 0; } 53

54 bsearch 函数 #include <stdlib.h> #include <stdio.h> struct data { int nr; char const *value; } dat[] = { {1, "Foo"}, {2, "Bar"}, {3, "Hello"}, {4, "World"} }; int data_cmp(void const *lhs, void const *rhs) { struct data const *const l = lhs; struct data const *const r = rhs; return (l->nr > r->nr) - (l->nr < r->nr); // 返回 1, 0 or -1 } 54

55 bsearch 函数 int main(void) { } struct data key = {.nr = 3 }; struct data const *res = bsearch(&key, dat, sizeof(dat)/sizeof(dat[0]), if (!res) { sizeof(dat[0]), data_cmp); printf("no %d not found\n", key.nr); } else { } printf("no %d: %s\n", res->nr, res->value); 输出 : No 3: Hello 55

56 词典作业提示 采用 bsearch 查找函数 怎么判断读到空行? char s[100]; 可以用 gets(s) 一次读取一行, 然后再用 sscanf 从 s 中分出英文和外文 gets(s) 读到空行时,s 的长度为 0, 即 s[0] = 0 读到文件尾时,gets 返回 NULL scanf 返回 EOF 也可以说明到了文件尾巴注意 : 文件尾可能有空行 57

新・明解C言語入門編『索引』

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

C/C++语言 - C/C++数据

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

Microsoft PowerPoint - string_kruse [兼容模式]

Microsoft PowerPoint - string_kruse [兼容模式] Strings Strings in C not encapsulated Every C-string has type char *. Hence, a C-string references an address in memory, the first of a contiguous set of bytes that store the characters making up the string.

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 177 [P179] (1) - [P181] [P182] (2) - for [P183] (3) - switch [P184] [P187] [P189] [P194] 178 [ ]; : : int var; : int var[3]; var 2293620 var[0] var[1] 2293620

More information

Microsoft PowerPoint - 4. 数组和字符串Arrays and Strings.ppt [兼容模式]

Microsoft PowerPoint - 4. 数组和字符串Arrays and Strings.ppt [兼容模式] Arrays and Strings 存储同类型的多个元素 Store multi elements of the same type 数组 (array) 存储固定数目的同类型元素 如整型数组存储的是一组整数, 字符数组存储的是一组字符 数组的大小称为数组的尺度 (dimension). 定义格式 : type arrayname[dimension]; 如声明 4 个元素的整型数组 :intarr[4];

More information

C++ 程式設計

C++ 程式設計 C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004

More information

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

《C语言程序设计》第2版教材习题参考答案

《C语言程序设计》第2版教材习题参考答案 教材 C 语言程序设计 ( 第 2 版 ) 清华大学出版社, 黄保和, 江弋编著 2011 年 10 月第二版 ISBN:978-7-302-26972-4 售价 :35 元 答案版本 本习题答案为 2012 年 2 月修订版本 一 选择题 1. 设已定义 int a, * p, 下列赋值表达式中正确的是 :C)p = &a A. *p = *a B. p = *a C.p = &a D. *p =

More information

《C语言程序设计》教材习题参考答案

《C语言程序设计》教材习题参考答案 教材名称 : C 语言程序设计 ( 第 1 版 ) 黄保和 江弋编著清华大学出版社 ISBN:978-7-302-13599-9, 红色封面 答案制作时间 :2011 年 2 月 -5 月 一 选择题 1. 设已定义 int a, * p, 下列赋值表达式中正确的是 :C)p=&a 2. 设已定义 int x,*p=&x;, 则下列表达式中错误的是 :B)&*x 3. 若已定义 int a=1,*b=&a;,

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

C

C C 2017 4 1 1. 2. while 3. 4. 5. for 6. 2/161 C 7. 8. (do while) 9. 10. (nested loop) 11. 12. 3/161 C 1. I 1 // summing.c: 2 #include 3 int main(void) 4 { 5 long num; 6 long sum = 0L; 7 int status;

More information

期中考试试题讲解

期中考试试题讲解 一 选择题 ( 一 ) 1. 结构化程序设计所规定的三种基本结构是 C A 主程序 子程序 函数 B 树形 网形 环形 C 顺序 选择 循环 D 输入 处理 输出 2. 下列关于 C 语言的叙述错误的是 A A 对大小写不敏感 B 不同类型的变量可以在一个表达式中 C main 函数可以写在程序文件的任何位置 D 同一个运算符号在不同的场合可以有不同的含义 3. 以下合法的实型常数是 C A.E4

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

《计算概论》课程 第十九讲 C 程序设计语言应用

《计算概论》课程 第十九讲  C 程序设计语言应用 计算概论 A 程序设计部分 字符数组与字符串 李戈 北京大学信息科学技术学院软件研究所 lige@sei.pku.edu.cn 字符数组的定义 #include int main() char a[10] = 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' ; for (int i = 0; i < 10; i++) cout

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

3.1 num = 3 ch = 'C' 2

3.1 num = 3 ch = 'C' 2 Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:

More information

untitled

untitled Introduction to Programming ( 數 ) Lecture 3 Spring 2005 March 4, 2005 Lecture 2 Outline 數 料 If if 狀 if 2 (Standard Output, stdout): 料. ((Standard Input, stdin): 料. 類 數 數 數 說 printf 見 數 puts 串 數 putchar

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish 我 难 度 : 高 级 对 们 现 不 在 知 仍 道 有 听 影 过 响 多 少 那 次 么 : 研 英 究 过 文 论 去 写 文 时 作 的 表 技 引 示 巧 言 事 : 部 情 引 分 发 言 该 生 使 在 中 用 过 去, 而 现 在 完 成 时 仅 表 示 事 情 发 生 在 过 去, 并 的 哪 现 种 在 时 完 态 成 呢 时? 和 难 过 道 去 不 时 相 关? 是 所 有

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

《C语言程序设计》教材习题参考答案

《C语言程序设计》教材习题参考答案 教材名称 : C 语言程序设计 ( 第 1 版 ) 黄保和 江弋编著清华大学出版社 ISBN: 978-7-302-13599-9, 红色封面答案制作时间 :2011 年 2 月 -5 月一 选择题 1. 以下数组定义中, 错误的是 :C)int a[3]=1,2,3,4; 2. 以下数组定义中, 正确的是 :B) int a[][2]=1,2,3,4; 3. 设有定义 int a[8][10];,

More information

C/C++语言 - 分支结构

C/C++语言 - 分支结构 C/C++ Table of contents 1. if 2. if else 3. 4. 5. 6. continue break 7. switch 1 if if i // colddays.c: # include int main ( void ) { const int FREEZING = 0; float temperature ; int cold_ days

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

UTI (Urinary Tract Infection) - Traditional Chinese

UTI (Urinary Tract Infection) - Traditional Chinese UTI (Urinary Tract Infection) Urinary tract infection, also called UTI, is an infection of the bladder or kidneys. Urethra Kidney Ureters Bladder Vagina Kidney Ureters Bladder Urethra Penis Causes UTI

More information

Microsoft PowerPoint - 20-string-s.pptx

Microsoft PowerPoint - 20-string-s.pptx String 1 String/ 1.: char s1[10]; char *s2; char s3[] = "Chan Tai Man"; char s4[20] = "Chan Siu Ming"; char s5[]={'h','e','l','l','o','\0'; 0 1 2 3 4 5 6 7 8 9 10 11 12 s3 C h a n T a i \0 M a n \0 printf

More information

致 谢 本 论 文 能 得 以 完 成, 首 先 要 感 谢 我 的 导 师 胡 曙 中 教 授 正 是 他 的 悉 心 指 导 和 关 怀 下, 我 才 能 够 最 终 选 定 了 研 究 方 向, 确 定 了 论 文 题 目, 并 逐 步 深 化 了 对 研 究 课 题 的 认 识, 从 而 一

致 谢 本 论 文 能 得 以 完 成, 首 先 要 感 谢 我 的 导 师 胡 曙 中 教 授 正 是 他 的 悉 心 指 导 和 关 怀 下, 我 才 能 够 最 终 选 定 了 研 究 方 向, 确 定 了 论 文 题 目, 并 逐 步 深 化 了 对 研 究 课 题 的 认 识, 从 而 一 中 美 国 际 新 闻 的 叙 事 学 比 较 分 析 以 英 伊 水 兵 事 件 为 例 A Comparative Analysis on Narration of Sino-US International News Case Study:UK-Iran Marine Issue 姓 名 : 李 英 专 业 : 新 闻 学 学 号 : 05390 指 导 老 师 : 胡 曙 中 教 授 上 海

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

nooog

nooog C : : : , C C,,, C, C,, C ( ), ( ) C,,, ;,, ; C,,, ;, ;, ;, ;,,,, ;,,, ; : 1 9, 2 3, 4, 5, 6 10 11, 7 8, 12 13,,,,, 2008 1 1 (1 ) 1.1 (1 ) 1.1.1 ( ) 1.1.2 ( ) 1.1.3 ( ) 1.1.4 ( ) 1.1.5 ( ) 1.2 ( ) 1.2.1

More information

Ps22Pdf

Ps22Pdf ( 98 ) C ( ) ( )158 1998 C : C C C,,, C,, : C ( ) : : (, 100084) : : : 7871092 1/ 16 :18 25 :415 : 2000 3 1 2000 3 1 : ISBN 7 302 01166 4/ T P432 : 00016000 : 22 00 ( 98 ) 20 90,,, ;,,, 1994, 1998, 160,

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

chap07.key

chap07.key #include void two(); void three(); int main() printf("i'm in main.\n"); two(); return 0; void two() printf("i'm in two.\n"); three(); void three() printf("i'm in three.\n"); void, int 标识符逗号分隔,

More information

99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 370-2 英領域 Kent

99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 370-2 英領域 Kent 2010 年 8 月 27 日 出 刊 精 緻 教 育 宜 蘭 縣 公 辦 民 營 人 國 民 中 小 學 財 團 法 人 人 適 性 教 育 基 金 會 承 辦 地 址 : 宜 蘭 縣 26141 頭 城 鎮 雅 路 150 號 (03)977-3396 http://www.jwps.ilc.edu.tw 健 康 VS. 學 習 各 位 合 夥 人 其 實 都 知 道, 我 是 個 胖 子, 而

More information

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後 郭家朗 許鈞嵐 劉振迪 樊偉賢 林洛鋒 第 36 期 出版日期 28-3-2014 出版日期 28-3-2014 可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

202 The Sending Back of The Japanese People in Taiwan in The Beginning Years After the World War II Abstract Su-ying Ou* In August 1945, Japan lost th

202 The Sending Back of The Japanese People in Taiwan in The Beginning Years After the World War II Abstract Su-ying Ou* In August 1945, Japan lost th 201 1945 8 1945 202 The Sending Back of The Japanese People in Taiwan in The Beginning Years After the World War II Abstract Su-ying Ou* In August 1945, Japan lost the war and had to retreat from Taiwan.

More information

2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf("%d", &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf("%

2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf(%d, &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf(% 2013 ( 28 ) ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 10 B 1 C 1 D 5 E 5 F 1 G II 5 H 30 1 2013 C 1 #include 2 int main(void) 3

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

Microsoft Word - Final Exam Review Packet.docx

Microsoft Word - Final Exam Review Packet.docx Do you know these words?... 3.1 3.5 Can you do the following?... Ask for and say the date. Use the adverbial of time correctly. Use Use to ask a tag question. Form a yes/no question with the verb / not

More information

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2 3,,,,,, 1872,,,, 3 2004 ( 04BZS030),, 1 2005 5,,,,,,,,,,,,,,,,, 1928 716,1935 6 2682 1928 2 1935 6 1966, 2174, 7014 %, 94137 % 4, 1961, 59 1929,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2 , :,,,, :,,,,,,

More information

C++ 程序设计 OJ4 - 参考答案 MASTER 2019 年 5 月 30 日 1

C++ 程序设计 OJ4 - 参考答案 MASTER 2019 年 5 月 30 日 1 C++ 程序设计 OJ4 - 参考答案 MASTER 2019 年 月 30 日 1 1 STRINGSORT 1 StringSort 题目描述 编写程序, 利用 string 类完成一个字符串中字符的排序 ( 降序 ) 并输出 输入描述 输入仅一行, 是一个仅由大小写字母和数字组成的字符串 输出描述 输出排序后的字符串 样例输入 abcde 样例输出 edcba 提示 使用 std::sort

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位

More information

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡 Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外

More information

Microsoft PowerPoint - 5. 指针Pointers.ppt [兼容模式]

Microsoft PowerPoint - 5. 指针Pointers.ppt [兼容模式] 指针 Pointers 变量指针与指针变量 Pointer of a variable 变量与内存 (Variables and Memory) 当你声明一个变量时, 计算机将给该变量一个内存, 可以存储变量的值 当你使用变量时, 计算机将做两步操作 : - 根据变量名查找其对应的地址 ; - 通过地址对该地址的变量内容进行读 (retrieve) 或写 (set) 变量的地址称为变量的指针! C++

More information

國立桃園高中96學年度新生始業輔導新生手冊目錄

國立桃園高中96學年度新生始業輔導新生手冊目錄 彰 化 考 區 104 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 彰 化 縣 政 府 104 年 01 月 27 日 府 教 學 字 第 1040027611 號 函 中 華 民 國 104 年 2 月 9 日 彰 化 考 區 104 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 鹿 港 高 級 中 學 地 址 :50546 彰 化 縣 鹿 港 鎮

More information

内 容 提 要 指 针 持 久 动 态 内 存 分 配 字 符 串 ( 字 符 数 组 ) 2

内 容 提 要 指 针 持 久 动 态 内 存 分 配 字 符 串 ( 字 符 数 组 ) 2 第 六 讲 指 针 与 字 符 串 1 内 容 提 要 指 针 持 久 动 态 内 存 分 配 字 符 串 ( 字 符 数 组 ) 2 指 针 什 么 是 指 针 指 针 的 定 义 与 运 算 指 针 与 一 维 数 组 指 针 数 组 行 指 针 与 二 维 数 组 指 针 与 引 用 指 针 与 函 数 3 指 针 定 义 什 么 是 指 针 指 针 变 量, 简 称 指 针, 用 来 存 放

More information

科学计算的语言-FORTRAN95

科学计算的语言-FORTRAN95 科 学 计 算 的 语 言 -FORTRAN95 目 录 第 一 篇 闲 话 第 1 章 目 的 是 计 算 第 2 章 FORTRAN95 如 何 描 述 计 算 第 3 章 FORTRAN 的 编 译 系 统 第 二 篇 计 算 的 叙 述 第 4 章 FORTRAN95 语 言 的 形 貌 第 5 章 准 备 数 据 第 6 章 构 造 数 据 第 7 章 声 明 数 据 第 8 章 构 造

More information

Microsoft Word - ChineseSATII .doc

Microsoft Word - ChineseSATII .doc 中 文 SAT II 冯 瑶 一 什 么 是 SAT II 中 文 (SAT Subject Test in Chinese with Listening)? SAT Subject Test 是 美 国 大 学 理 事 会 (College Board) 为 美 国 高 中 生 举 办 的 全 国 性 专 科 标 准 测 试 考 生 的 成 绩 是 美 国 大 学 录 取 新 生 的 重 要 依

More information

四川省普通高等学校

四川省普通高等学校 四 川 省 普 通 高 等 学 校 计 算 机 应 用 知 识 和 能 力 等 级 考 试 考 试 大 纲 (2013 年 试 行 版 ) 四 川 省 教 育 厅 计 算 机 等 级 考 试 中 心 2013 年 1 月 目 录 一 级 考 试 大 纲 1 二 级 考 试 大 纲 6 程 序 设 计 公 共 基 础 知 识 6 BASIC 语 言 程 序 设 计 (Visual Basic) 9

More information

_汪_文前新ok[3.1].doc

_汪_文前新ok[3.1].doc 普 通 高 校 本 科 计 算 机 专 业 特 色 教 材 精 选 四 川 大 学 计 算 机 学 院 国 家 示 范 性 软 件 学 院 精 品 课 程 基 金 青 年 基 金 资 助 项 目 C 语 言 程 序 设 计 (C99 版 ) 陈 良 银 游 洪 跃 李 旭 伟 主 编 李 志 蜀 唐 宁 九 李 涛 主 审 清 华 大 学 出 版 社 北 京 i 内 容 简 介 本 教 材 面 向

More information

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3 浙江大学 C 程序设计及实验 试题卷 2002-2003 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:30-10:30 注意 : 答题内容必须写在答题卷上, 写在本试题卷上无效 一. 单项选择题 ( 每题 1 分, 共 10 分 ) 1. 下列运算符中, 优先级最低的是 A.

More information

[改訂新版]C言語による標準アルゴリズム事典

[改訂新版]C言語による標準アルゴリズム事典 iii C 1991 SEND + MORE = MONEY C 100 2003 Java 2003 27 PC-9800 C BMP SVG EPS BMPSVG WindowsMacLinux Web iv int main() int main(void) EXIT_SUCCESS 0 https://github.com/okumuralab/ algo-c TEX TEX PDF PDF

More information

Ps22Pdf

Ps22Pdf C ( CIP) C /. :, 2001. 7 21 ISBN 7-5624 -2355-5. C........ C. TP312 CIP ( 2001 ) 034496 C * * : 7871092 1 /16 : 14. 25 : 356 20017 1 20017 1 : 1 6 000 ISBN 7-5624-2355-5 / TP311 : 21. 00 C, C,,,, C,, (

More information

C++ 程序设计 OJ9 - 参考答案 MASTER 2019 年 6 月 7 日 1

C++ 程序设计 OJ9 - 参考答案 MASTER 2019 年 6 月 7 日 1 C++ 程序设计 OJ9 - 参考答案 MASTER 2019 年 6 月 7 日 1 1 CARDGAME 1 CardGame 题目描述 桌上有一叠牌, 从第一张牌 ( 即位于顶面的牌 ) 开始从上往下依次编号为 1~n 当至少还剩两张牌时进行以下操作 : 把第一张牌扔掉, 然后把新的第一张放到整叠牌的最后 请模拟这个过程, 依次输出每次扔掉的牌以及最后剩下的牌的编号 输入 输入正整数 n(n

More information

untitled

untitled 1 DBF (READDBF.C)... 1 2 (filetest.c)...2 3 (mousetes.c)...3 4 (painttes.c)...5 5 (dirtest.c)...9 6 (list.c)...9 1 dbf (readdbf.c) /* dbf */ #include int rf,k,reclen,addr,*p1; long brec,erec,i,j,recnum,*p2;

More information

untitled

untitled 不 料 料 例 : ( 料 ) 串 度 8 年 數 串 度 4 串 度 數 數 9- ( ) 利 數 struct { ; ; 數 struct 數 ; 9-2 數 利 數 C struct 數 ; C++ 數 ; struct 省略 9-3 例 ( 料 例 ) struct people{ char name[]; int age; char address[4]; char phone[]; int

More information

Microsoft Word - 11月電子報1130.doc

Microsoft Word - 11月電子報1130.doc 發 行 人 : 楊 進 成 出 刊 日 期 2008 年 12 月 1 日, 第 38 期 第 1 頁 / 共 16 頁 封 面 圖 話 來 來 來, 來 葳 格 ; 玩 玩 玩, 玩 數 學 在 11 月 17 到 21 日 這 5 天 裡 每 天 一 個 題 目, 孩 子 們 依 據 不 同 年 段, 尋 找 屬 於 自 己 的 解 答, 這 些 數 學 題 目 和 校 園 情 境 緊 緊 結

More information

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63> 2010 年 理 工 类 AB 级 阅 读 判 断 例 题 精 选 (2) Computer mouse How does the mouse work? We have to start at the bottom, so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom

More information

2017 CCAFL Chinese in Context

2017 CCAFL Chinese in Context Student/Registration Number Centre Number 2017 PUBLIC EXAMINATION Chinese in Context Reading Time: 10 minutes Working Time: 2 hours and 30 minutes You have 10 minutes to read all the papers and to familiarise

More information

Open topic Bellman-Ford算法与负环

Open topic   Bellman-Ford算法与负环 Open topic Bellman-Ford 2018 11 5 171860508@smail.nju.edu.cn 1/15 Contents 1. G s BF 2. BF 3. BF 2/15 BF G Bellman-Ford false 3/15 BF G Bellman-Ford false G c = v 0, v 1,..., v k (v 0 = v k ) k w(v i 1,

More information

NOWOER.OM m/n m/=n m/n m%=n m%n m%=n m%n m/=n 4. enum string x1, x2, x3=10, x4, x5, x; 函数外部问 x 等于什么? 随机值 5. unsigned char *p1; unsigned long *p

NOWOER.OM m/n m/=n m/n m%=n m%n m%=n m%n m/=n 4. enum string x1, x2, x3=10, x4, x5, x; 函数外部问 x 等于什么? 随机值 5. unsigned char *p1; unsigned long *p NOWOER.OM /++ 程师能 评估. 单项选择题 1. 下 描述正确的是 int *p1 = new int[10]; int *p2 = new int[10](); p1 和 p2 申请的空间 的值都是随机值 p1 和 p2 申请的空间 的值都已经初始化 p1 申请的空间 的值是随机值,p2 申请的空间 的值已经初始化 p1 申请的空间 的值已经初始化,p2 申请的空间 的值是随机值 2.

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

2015 Chinese FL Written examination

2015 Chinese FL Written examination Victorian Certificate of Education 2015 SUPERVISOR TO ATTACH PROCESSING LABEL HERE Letter STUDENT NUMBER CHINESE FIRST LANGUAGE Written examination Monday 16 November 2015 Reading time: 11.45 am to 12.00

More information

Guava学习之Resources

Guava学习之Resources Resources 提供提供操作 classpath 路径下所有资源的方法 除非另有说明, 否则类中所有方法的参数都不能为 null 虽然有些方法的参数是 URL 类型的, 但是这些方法实现通常不是以 HTTP 完成的 ; 同时这些资源也非 classpath 路径下的 下面两个函数都是根据资源的名称得到其绝对路径, 从函数里面可以看出,Resources 类中的 getresource 函数都是基于

More information

前 言 一 場 交 換 學 生 的 夢, 夢 想 不 只 是 敢 夢, 而 是 也 要 敢 去 實 踐 為 期 一 年 的 交 換 學 生 生 涯, 說 長 不 長, 說 短 不 短 再 長 的 路, 一 步 步 也 能 走 完 ; 再 短 的 路, 不 踏 出 起 步 就 無 法 到 達 這 次

前 言 一 場 交 換 學 生 的 夢, 夢 想 不 只 是 敢 夢, 而 是 也 要 敢 去 實 踐 為 期 一 年 的 交 換 學 生 生 涯, 說 長 不 長, 說 短 不 短 再 長 的 路, 一 步 步 也 能 走 完 ; 再 短 的 路, 不 踏 出 起 步 就 無 法 到 達 這 次 壹 教 育 部 獎 助 國 內 大 學 校 院 選 送 優 秀 學 生 出 國 研 修 之 留 學 生 成 果 報 告 書 奧 地 利 約 翰 克 卜 勒 大 學 (JKU) 留 學 心 得 原 就 讀 學 校 / 科 系 / 年 級 : 長 榮 大 學 / 財 務 金 融 學 系 / 四 年 級 獲 獎 生 姓 名 : 賴 欣 怡 研 修 國 家 : 奧 地 利 研 修 學 校 : 約 翰 克 普

More information

1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7

1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7 1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7-80097 - 564-9 /TP 8 : 10. 00 ,,,, 1994 NCRE,,, ( ),,,,,

More information

星河33期.FIT)

星河33期.FIT) 大 事 记 渊 2011.11 要 要 2011.12 冤 1 尧 11 月 25 日 下 午 袁 白 银 区 首 届 中 小 学 校 长 论 坛 在 我 校 举 行 遥 2 尧 在 甘 肃 省 2011 年 野 十 一 五 冶 规 划 课 题 集 中 鉴 定 中 袁 我 校 教 师 郝 香 梅 负 责 的 课 题 叶 英 语 课 堂 的 艺 术 性 研 究 曳 袁 张 宏 林 负 责 的 叶 白

More information

國家圖書館典藏電子全文

國家圖書館典藏電子全文 - - I - II - Abstract Except for few intellect games such as chess, mahjong, and poker games, role-play games in on-line games are the mainstream. As for the so-called RPG, briefly speaking, it is the

More information

國立中山大學學位論文典藏.PDF

國立中山大學學位論文典藏.PDF I II III IV V VI In recent years, the Taiwan s TV talk shows about the political topic have a bias in favour of party. In Taiwan, there are two property of party, one is called Blue property of party,

More information

2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf ("%d", & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf ("%d %d

2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf (%d, & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf (%d %d 2013 18 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp, Compilation Error cin scanf Time Limit Exceeded 1: A 5 B 5 C 5 D 5 E 5 F 5 1 2013 C 1 # include 2 int main ( void ) 3 { 4 int cases, a, b,

More information

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc 聖 保 羅 男 女 中 學 學 年 中 一 入 學 申 請 申 請 須 知 申 請 程 序 : 請 將 下 列 文 件 交 回 本 校 ( 麥 當 勞 道 33 號 ( 請 以 A4 紙 張 雙 面 影 印, 並 用 魚 尾 夾 夾 起 : 填 妥 申 請 表 並 貼 上 近 照 小 學 五 年 級 上 下 學 期 成 績 表 影 印 本 課 外 活 動 表 現 及 服 務 的 證 明 文 件 及

More information

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

More information

ENGG1410-F Tutorial 6

ENGG1410-F Tutorial 6 Jianwen Zhao Department of Computer Science and Engineering The Chinese University of Hong Kong 1/16 Problem 1. Matrix Diagonalization Diagonalize the following matrix: A = [ ] 1 2 4 3 2/16 Solution The

More information

2015年4月11日雅思阅读预测机经(新东方版)

2015年4月11日雅思阅读预测机经(新东方版) 剑 桥 雅 思 10 第 一 时 间 解 析 阅 读 部 分 1 剑 桥 雅 思 10 整 体 内 容 统 计 2 剑 桥 雅 思 10 话 题 类 型 从 以 上 统 计 可 以 看 出, 雅 思 阅 读 的 考 试 话 题 一 直 广 泛 多 样 而 题 型 则 稳 中 有 变 以 剑 桥 10 的 test 4 为 例 出 现 的 三 篇 文 章 分 别 是 自 然 类, 心 理 研 究 类,

More information

唐彪《讀書作文譜》述略

唐彪《讀書作文譜》述略 唐 彪 讀 書 作 文 譜 選 析 唐 彪 讀 書 作 文 譜 選 析 * 呂 湘 瑜 龍 華 科 技 大 學 通 識 教 育 中 心 摘 要 唐 彪 乃 清 初 浙 江 名 儒, 其 讀 書 作 文 譜 簡 潔 地 呈 現 了 對 於 讀 書 作 文 以 及 文 學 的 種 種 看 法 其 以 為 無 論 是 讀 書 或 者 作 文, 都 必 須 以 靜 凝 神 為 出 發 點, 先 求 得 放

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc 2 5 8 11 0 1. 13 2. 15 3. 18 1 1. 22 2. 25 3. 27 2 1. 35 2. 38 3. 41 4. 43 5. 48 6. 50 3 1. 56 2. 59 3. 63 4. 65 5. 69 13 22 35 56 6. 74 7. 82 8. 84 9. 87 10. 97 11. 102 12. 107 13. 111 4 114 1. 114 2.

More information

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d WeChat Search Visual Identity Guidelines WEDESIGN 2018. 04 Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

穨1-林聖欽.doc

穨1-林聖欽.doc 1 39 92 11 Geographical Research No. 39, November. 2003 * The historical geographical study of the Taiwanese christening culture: A case of Xuei-gia-liau, Xuei-gia Bau, Yan-Shui-Gang Ting in Japanese Rule

More information

C 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf ("%d", & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9

C 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf (%d, & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9 201 201 21 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 1 B 1 C 5 D RPG 10 E 10 F 1 G II 1 1 201 201 C 1 # include 2 int main ( void

More information

Microsoft Word - CPE考生使用手冊160524.docx

Microsoft Word - CPE考生使用手冊160524.docx 大 學 程 式 能 力 檢 定 (CPE) 考 生 使 用 手 冊 2016 年 5 月 24 日 這 份 手 冊 提 供 給 參 加 CPE 檢 定 考 試 的 考 生 內 容 包 含 考 試 環 境 的 使 用, 以 及 解 題 時 所 使 用 I/O 的 基 本 知 識 1. 如 欲 報 名 參 加 CPE 考 試, 請 先 於 CPE 網 站 完 成 帳 號 註 冊, 然 後 再 報 名 該

More information

\\Lhh\07-02\黑白\内页黑白1-16.p

\\Lhh\07-02\黑白\内页黑白1-16.p Abstract: Urban Grid Management Mode (UGMM) is born against the background of the fast development of digital city. It is a set of urban management ideas, tools, organizations and flow, which is on the

More information

從詩歌的鑒賞談生命價值的建構

從詩歌的鑒賞談生命價值的建構 Viktor E. Frankl (logotherapy) (will-to-meaning) (creative values) Ture (Good) (Beauty) (experiential values) (attitudinal values) 1 2 (logotherapy) (biological) (2) (psychological) (3) (noölogical) (4)

More information

Microsoft Word - 論文封面-980103修.doc

Microsoft Word - 論文封面-980103修.doc 淡 江 大 學 中 國 文 學 學 系 碩 士 在 職 專 班 碩 士 論 文 指 導 教 授 : 呂 正 惠 蘇 敏 逸 博 士 博 士 倚 天 屠 龍 記 愛 情 敘 事 之 研 究 研 究 生 : 陳 麗 淑 撰 中 華 民 國 98 年 1 月 淡 江 大 學 研 究 生 中 文 論 文 提 要 論 文 名 稱 : 倚 天 屠 龍 記 愛 情 敘 事 之 研 究 頁 數 :128 校 系 (

More information

國 立 屏 東 教 育 大 學 文 化 創 意 產 業 學 系 碩 士 班 碩 士 論 文 指 導 教 授 : 劉 明 宗 博 士 鍾 肇 政 中 短 篇 小 說 女 性 形 象 析 論 研 究 生 : 吳 鳳 琳 撰 中 華 民 國 一 二 年 六 月

國 立 屏 東 教 育 大 學 文 化 創 意 產 業 學 系 碩 士 班 碩 士 論 文 指 導 教 授 : 劉 明 宗 博 士 鍾 肇 政 中 短 篇 小 說 女 性 形 象 析 論 研 究 生 : 吳 鳳 琳 撰 中 華 民 國 一 二 年 六 月 本 論 文 獲 客 家 委 員 會 102 年 度 客 家 研 究 優 良 博 碩 士 論 文 獎 助 國 立 屏 東 教 育 大 學 文 化 創 意 產 業 學 系 碩 士 班 碩 士 論 文 指 導 教 授 : 劉 明 宗 博 士 鍾 肇 政 中 短 篇 小 說 女 性 形 象 析 論 研 究 生 : 吳 鳳 琳 撰 中 華 民 國 一 二 年 六 月 誌 謝 手 裡 拿 到 這 本 沉 甸

More information

壹、前言

壹、前言 DOH93-DC-1116 93 3 1 93 12 31 ... 1... 4... 6... 7... 8... 9... 13... 13 ()... 13 ()... 14 ()... 14... 16... 16... 16... 17... 18 1 ... 19... 24... 27... 29... 31... 31... 33... 34... 35... 36... 36 ()...

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

216 2010 6 Abstract To overcome the present crisis of conditions of knowledge, an effort to reconceptualize, position and identify the shared experien

216 2010 6 Abstract To overcome the present crisis of conditions of knowledge, an effort to reconceptualize, position and identify the shared experien 2010 6 215-268 * ** Chen Yingzhen s Third World On Lunatics, Madman, Mental Patient by Kuan-Hsing CHEN Keywords: Chen Yingzhen, Third World, mental conditions, lunatic, madman, mental illness 2009 11 4

More information

東吳大學

東吳大學 律 律 論 論 療 行 The Study on Medical Practice and Coercion 林 年 律 律 論 論 療 行 The Study on Medical Practice and Coercion 林 年 i 讀 臨 療 留 館 讀 臨 律 六 礪 讀 不 冷 療 臨 年 裡 歷 練 禮 更 老 林 了 更 臨 不 吝 麗 老 劉 老 論 諸 見 了 年 金 歷 了 年

More information

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl SKLOIS (Pseudo) Preimage Attack on Reduced-Round Grøstl Hash Function and Others Shuang Wu, Dengguo Feng, Wenling Wu, Jian Guo, Le Dong, Jian Zou March 20, 2012 Institute. of Software, Chinese Academy

More information

Microsoft Word - 第四組心得.doc

Microsoft Word - 第四組心得.doc 徐 婉 真 這 四 天 的 綠 島 人 權 體 驗 營 令 我 印 象 深 刻, 尤 其 第 三 天 晚 上 吳 豪 人 教 授 的 那 堂 課, 他 讓 我 聽 到 不 同 於 以 往 的 正 義 之 聲 轉 型 正 義, 透 過 他 幽 默 熱 情 的 語 調 激 起 了 我 對 政 治 的 興 趣, 願 意 在 未 來 多 關 心 社 會 多 了 解 政 治 第 一 天 抵 達 綠 島 不 久,

More information

曹美秀.pdf

曹美秀.pdf 2006 3 219 256 (1858-1927) (1846-1894) 1 2 3 1 1988 70 2 1998 51 3 5 1991 12 37-219- 4 5 6 7 8 9 10 11 12 13 14 15 4 1998 5 1998 6 1988 7 1994 8 1995 725-732 9 1987 170 10 52 11 1994 121 12 2000 51 13

More information

鷹 架 寫 作 教 學 對 於 提 升 國 小 學 生 描 述 能 力 之 行 動 研 究 摘 要 本 研 究 採 取 行 動 研 究 的 方 法, 旨 在 運 用 鷹 架 的 策 略 提 升 學 生 描 述 能 力 以 花 花 國 小 六 年 級 七 班 三 十 五 個 學 生 作 為 研 究 對

鷹 架 寫 作 教 學 對 於 提 升 國 小 學 生 描 述 能 力 之 行 動 研 究 摘 要 本 研 究 採 取 行 動 研 究 的 方 法, 旨 在 運 用 鷹 架 的 策 略 提 升 學 生 描 述 能 力 以 花 花 國 小 六 年 級 七 班 三 十 五 個 學 生 作 為 研 究 對 國 立 台 中 教 育 大 學 課 程 與 教 學 研 究 所 碩 士 論 文 指 導 教 授 : 游 自 達 博 士 鷹 架 寫 作 教 學 對 於 提 升 國 小 學 生 描 述 能 力 之 行 動 研 究 研 究 生 : 朱 怡 珍 撰 中 華 民 國 九 十 八 年 七 月 I 鷹 架 寫 作 教 學 對 於 提 升 國 小 學 生 描 述 能 力 之 行 動 研 究 摘 要 本 研 究 採

More information

Monthly Report 2010_12

Monthly Report 2010_12 年月日 程序设计 -2011 年秋 1 数组的基本概念 一维数组 多维数组 字符数组与字符串 程序设计 -2011 年秋 2 定义形式 类型说明符数组名 [ 常量表达式 ]; 类型说明符数组名 [ 常量表达式 ][ 常量表达式 ]; 引用形式 数组名 [ 下标 ] 数组名 [ 下标 ][ 下标 ] 程序设计 -2011 年秋 3 数组的基本概念 一维数组 多维数组 字符数组与字符串 程序设计 -2011

More information

Microsoft Word - No_HK2012-1.doc

Microsoft Word - No_HK2012-1.doc No. 2012-1 2012 1 9 ********************************************************* 1 鄧 英 淘 : 為 了 多 數 人 的 現 代 化 緣 於 再 版 鄧 英 淘 著 新 發 展 方 式 與 中 國 的 未 來, 2 2011 年 8~9 月, 我 們 在 301 醫 院 和 鄧 英 淘 進 行 了 一 系 列 訪 談, 根

More information

Pneumonia - Traditional Chinese

Pneumonia - Traditional Chinese Pneumonia When you have pneumonia, the air sacs in the lungs fill with infection or mucus. Pneumonia is caused by a bacteria, virus or chemical. It is not often passed from one person to another. Signs

More information