C/C++ - 字符串与字符串函数

Size: px
Start display at page:

Download "C/C++ - 字符串与字符串函数"

Transcription

1 C/C++

2 Table of contents

3

4 char C 2

5 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3

6 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed John. 4

7 (static storage) 5

8 // quotes.c: # include <stdio.h> int main ( void ) { printf ("%s, %p, %c\n", "We", " are ", *" space farers "); return 0; } 6

9 // quotes.c: # include <stdio.h> int main ( void ) { printf ("%s, %p, %c\n", "We", " are ", *" space farers "); return 0; } We, 0 x100000f81, s 6

10 char s [40] = " Hello world!" 7

11 char s [40] = " Hello world!" char s[] = { H, e, l, l, o,, w, o, r, l, d,!, \0 }; 7

12 1 8

13 char s[] = " Hello world!" 9

14 char s[] = " Hello world!" char * s = " Hello world!" 9

15 char s[] = " Hello world!" char * s = " Hello world!" s 9

16 char heart [] = "I love C!"; char * head = "I love math!"; heart head 10

17 (1) for ( i = 0; i < 6; i ++) putchar ( heart [i]); putchar ( \n ); for ( i = 0; i < 6; i ++) putchar ( head [i]); putchar ( \n ); I I love love 11

18 (2) for ( i = 0; i < 6; i ++) putchar (*( heart + i)); putchar ( \n ); for ( i = 0; i < 6; i ++) putchar (*( head + i)); putchar ( \n ); I I love love 12

19 (3) while (* head!= \0 ) putchar (*( head ++) ); I love math! 13

20 (4) head heart head = heart ; heart = head ; 14

21 (5) heart heart [7] = R ; OR *( heart + 7) = R ; 15

22 (5) heart heart [7] = R ; OR *( heart + 7) = R ; 16

23 const char * fruit [4] = { " Apple ", " Pear ", " Orange ", " Peach " }; 4 fruit char fruit[0] fruit[1]... 17

24

25 18

26 char * name ; scanf ("%s", name ); name 19

27 char name [81]; C malloc 20

28 C scanf() gets() fgets() 21

29 gets() gets( get string) 22

30 gets() // name1.c # include <stdio.h> # define MAX 81 int main ( void ) { char name [ MAX ]; printf ("Hi, what s your name?\n"); gets ( name ); printf (" Nice name, %s.\n", name ); return 0; } 23

31 gets() Hi, what s your name? warning : this program uses gets (), which is unsafe. Xiaoping Zhang Nice name, Xiaoping Zhang. 24

32 gets() Hi, what s your name? warning : this program uses gets (), which is unsafe. Xiaoping Zhang Nice name, Xiaoping Zhang. gets() gets() 24

33 gets() 1 // name2.c: 2 # include <stdio.h> 3 # define MAX 81 4 int main ( void ) 5 { 6 char name [ MAX ]; 7 char * ptr ; 8 printf ("Hi, what s your name?\n"); 9 ptr = gets ( name ); 10 printf ("%s? Ah! %s!\n", name, ptr ); 11 return 0; 12 } 25

34 gets() Hi, what s your name? warning : this program uses gets (), which is unsafe. Xiaoping Zhang Xiaoping Zhang? Ah! Xiaoping Zhang! 26

35 fgets() gets() fgets() 27

36 fgets() gets() fgets() 1. fgets() n fgets() n-1 2. fgets() gets() 3. fgets() stdin() 28

37 fgets() 1 // name3.c 2 # include <stdio.h> 3 # define MAX 81 4 int main ( void ) 5 { 6 char name [ MAX ]; 7 char * ptr ; 8 printf ("Hi, what s your name?\n"); 9 ptr = fgets (name, MAX, stdin ); 10 printf ("%s? Ah! %s!\n", name, ptr ); 11 return 0; 12 } 29

38 gets() Hi, what s your name? Xiaoping Zhang Xiaoping Zhang? Ah! Xiaoping Zhang! 30

39 gets() Hi, what s your name? Xiaoping Zhang Xiaoping Zhang? Ah! Xiaoping Zhang! fgets fgets 30

40 scanf() %s scanf() scanf() gets() scanf() gets() 31

41 scanf() scanf() 1. %s 2. %10s scanf() 10 32

42 scanf() 1: _ name scanf("%s", name); Fleebert_Hup Fleebert _Hup scanf("%5s", name); Fleebert_Hup Fleeb ert_hup scanf("%5s", name); Ann_Ular Ann _Ular 33

43 scanf() // scan_str.c: # include <stdio.h> int main ( void ) { char name1 [11], name2 [11]; int count ; printf (" Please enter 2 names.\n"); count = scanf ("%5s %10 s",name1, name2 ); printf ("I read the %d names %s and %s.\n", count, name1, name2 ); return 0; } 34

44 scanf() Please enter 2 names. Jesse Jukes I read the 2 names Jesse and Jukes. Please enter 2 names. Liza Applebottham I read the 2 names Liza and Applebotth. Please enter 2 names. Portensia Callowit I read the 2 names Porte and nsia. 35

45

46 puts() C puts() fputs() printf() 36

47 puts() i // put_out.c: # include <stdio.h> # define DEF "I am a # defined string." int main ( void ) { char str1 [80] = "An array was initialized to me."; const char * str2 = "A pointer was initialized to me."; puts ("I m an argument to puts ()."); puts ( DEF ); puts ( str1 ); puts ( str2 ); puts (& str1 [5]) ; puts ( str2 +4) ; return 0; } 37

48 puts() I m an argument to puts (). I am a # defined string. An array was initialized to me. A pointer was initialized to me. ray was initialized to me. inter was initialized to me. 38

49 puts() puts() printf() puts() puts() 39

50 puts() char str1 [ 80] = " An array was initialized to me. ";... puts (& str1 [5]) ; ray was initialized to me. 40

51 puts() char str1 [ 80] = " An array was initialized to me. ";... puts (& str1 [5]) ; ray was initialized to me. &str1[5] str1 6 r puts() 40

52 puts() const char * str2 = " A pointer was initialized to me.";... puts ( str2 +4) ; inter was initialized to me. 41

53 puts() const char * str2 = " A pointer was initialized to me.";... puts ( str2 +4) ; inter was initialized to me. str2+4 i puts() 41

54 puts() 1 // nono.c: 2 # include <stdio.h> 3 int main ( void ) 4 { 5 char side_a [] = " Side A"; 6 char dont [] = { W, O, W,! }; 7 char side_b [] = " Side B"; 8 9 puts ( dont ); return 0; 12 } 42

55 puts() 1 // nono.c: 2 # include <stdio.h> 3 int main ( void ) 4 { 5 char side_a [] = " Side A"; 6 char dont [] = { W, O, W,! }; 7 char side_b [] = " Side B"; 8 9 puts ( dont ); return 0; 12 } 42

56 puts() WOW! Side A 43

57 puts() WOW! Side A dont puts() dont side_a dont 43

58 fputs() fputs() puts() fputs() stdout stdout stdio.h puts() fputs() 44

59 fputs() gets() puts() char line [81]; while ( gets ( line )) puts ( line ); 45

60 fputs() fgets() fputs() char line [81]; while ( fgets (line, 81, stdin )) fputs (line, stdout ); line 46

61 fputs() puts() gets() fputs() fgets() 47

62 printf() printf() puts() printf ("%s\n", string ); puts ( string ); 48

63 printf() printf() printf ("Well, %s, %s\n", name, MSG ); 49

64

65 C string.h 1. strlen() 2. strcat() 3. strncat() 4. strcmp() 5. strncmp() 6. strcpy() 7. strncpy() 50

66 strlen() int * strlen ( const char * s); s s 51

67 strlen() i // test_fit.c # include <stdio.h> # include <string.h> void fit ( char *, unsigned int ); int main ( void ) { char mesg [] = " Hold on to your hats, hackers."; puts ( mesg ); fit (mesg,7) ; puts ( mesg ); puts (" Let s look at some more of the string."); puts ( mesg + 8); } return 0; 52

68 strlen() ii void fit ( char * string, unsigned int size ) { if ( strlen ( string ) > size ) *( string + size ) = \0 ; } 53

69 strlen() Hold on to your hats, hackers. Hold on Let s look at some more of the string. to your hats, hackers. 54

70 strcat() char * strcat ( char * s1, const char * s2); s2 s1 s2 s1 55

71 strcmp() s1 s2 strcat() char * s1 56

72 strcat() i # include <stdio.h> # include <string.h> # define SIZE 80 int main ( void ) { char flower [ SIZE ]; char addon [] = " s smell like old shoes."; puts (" What is your favorite flower?"); gets ( flower ); strcat ( flower, addon ); puts ( flower ); puts ( addon ); } return 0; 57

73 strcat() ii 58

74 strcat() What is your favorite flower? Rose Roses smell like old shoes. s smell like old shoes. 59

75 strncat() strcat() strncat() 60

76 strncat() char * strcat ( char * s1, const char * s2, size_t n); s2 n s1 s2 s1 strncat() char * s1 61

77 strncat() i # include <stdio.h> # include <string.h> # define SIZE 30 # define BUGSIZE 4 int main ( void ) { char flower [ SIZE ]; char addon [] = " s smell like old shoes."; char bug [ BUGSIZE ]; int available ; puts (" What is your favorite flower?"); gets ( flower ); if (( strlen ( addon ) + strlen ( flower ) + 1) <= SIZE ) strcat ( flower, addon ); puts ( flower ); 62

78 strncat() ii puts (" What is your favorite bug?"); gets ( bug ); available = BUGSIZE - strlen ( bug ) - 1; strncat (bug, "is sdfsdf ", 1); puts ( bug ); } return 0; 63

79 strncat() What is your favorite flower? Rose Roses smell like old shoes. What is your favorite bug? Aphid Aphids smell 64

80 strcmp() int strcmp ( const char * s1, const char * s2); s1 s2 0 ASCII 65

81 strcmp() 66

82 strcmp() i /* compare. c -- this will work */ # include <stdio.h> # include <string.h> # define ANSWER " Grant " # define MAX 40 int main ( void ) { char try [ MAX ]; puts (" Who is buried in Grant s tomb?"); gets ( try ); while ( strcmp (try, ANSWER )!= 0) { puts ("No, that s wrong. Try again."); gets ( try ); } puts (" That s right!"); 67

83 strcmp() ii } return 0; 68

84 strcmp() strcmp ("A", "A") is 0 strcmp ("A", "B") is -1 strcmp ("B", "A") is 1 strcmp ("C", "A") is 2 strcmp ("Z", "a") is -7 strcmp (" apples ", " apple ") is

85 strcmp() strcmp ("A", "A") is 0 strcmp ("A", "B") is -1 strcmp ("B", "A") is 1 strcmp ("C", "A") is 1 strcmp ("Z", "a") is -1 strcmp (" apples ", " apple ") is 1 70

86 strncmp() int strncmp ( const char * s1, const char * s2, size_t n); s1 s2 n strcmp() 71

87 strncmp() "astro" 5 72

88 strncmp() i /* starsrch.c -- use strncmp () */ # include <stdio.h> # include <string.h> # define LISTSIZE 5 int main ( void ) { const char * list [ LISTSIZE ] = { " astronomy ", " astounding ", " astrophysics ", " ostracize ", " asterism " }; int count = 0; int i; for ( i = 0; i < LISTSIZE ; i ++) if ( strncmp ( list [i]," astro ", 5) == 0) 73

89 strncmp() ii { printf (" Found : %s\n", list [i]); count ++; } printf (" The list contained % d words beginning " " with astro.\n", count ); } return 0; 74

90 strncmp() Found : astronomy Found : astrophysics The list contained 2 words beginning with astro. 75

91 strcpy() char * strcpy ( char * s1, const char * s2); s2 s1 s1 76

92 strcpy() s2 (source) s1 (target) s2 s1 s2 77

93 strcpy() i /* copy1.c -- strcpy () demo */ # include <stdio.h> # include <string.h> # define SIZE 40 # define LIM 5 int main ( void ) { char qwords [ LIM ][ SIZE ]; char temp [ SIZE ]; int i = 0; printf (" Enter %d words beginning with q:\n", LIM ); while (i < LIM && gets ( temp )) { if ( temp [0]!= q ) printf ("%s doesn t begin with q!\n", temp ); 78

94 strcpy() ii } else { strcpy ( qwords [i], temp ); i ++; } } puts (" Here are the words accepted :"); for ( i = 0; i < LIM ; i ++) puts ( qwords [i]); return 0; 79

95 strcpy() Enter 5 words beginning with q: quit quarter quite quotient nomore nomore doesn t begin with q! quiz Here are the words accepted : quit quarter quite quotient quiz 80

96 strcpy() strcpy() char * 81

97 strcpy() # include <stdio.h> # include <string.h> # define WORDS " beast " # define SIZE 40 int main ( void ) { const char * orig = WORDS ; char copy [ SIZE ] = " Be the best that you can be."; char * ps; puts ( orig ); puts ( copy ); ps = strcpy ( copy + 7, orig ); puts ( copy ); puts (ps +6) ; return 0; } 82

98 strcpy() beast Be the best that you can be. Be the beast beast 83

99 strncpy() char * strcpy ( char * s1, const char * s2, size_t n); s2 n s1 n 84

100 strncpy() n n n 1 s1 85

101 strncpy() i # include <stdio.h> # include <string.h> # define SIZE 40 # define TARGSIZE 7 # define LIM 5 int main ( void ) { char qwords [ LIM ][ TARGSIZE ]; char temp [ SIZE ]; int i = 0; printf (" Enter %d words begin with q:\n", LIM ); while (i < LIM && gets ( temp )) { if ( temp [0]!= q ) printf ("%s doesn t begin with q!\n", temp ); 86

102 strncpy() ii } else { strncpy ( qwords [i], temp, TARGSIZE - 1); qwords [i][ TARGSIZE - 1] = \0 ; i ++; } } puts (" Here are the words accepted :"); for ( i = 0; i < LIM ; i ++) puts ( qwords [i]); return 0; 87

103 strncpy() Enter 5 words begin with q: quack quadratic quisling quota quagga Here are the words accepted : quack quadra quisli quota quagga 88

104 sprintf() sprintf() stdio.h printf() printf() 89

105 sprintf() i # include <stdio.h> # define MAX 20 int main ( void ) { char first [ MAX ]; char last [ MAX ]; char formal [2* MAX +10]; double prize ; puts (" Enter your first name :"); gets ( first ); puts (" Enter your last name :"); gets ( last ); puts (" Enter your prize money :"); 90

106 sprintf() ii scanf ("%lf", & prize ); sprintf ( formal, "%s, % -19s: $ %6.2 f\n", last, first, prize ); puts ( formal ); } return 0; 91

107 sprintf() Enter your first name : warning : this program uses gets (), which is unsafe. Teddy Enter your last name : Bear Enter your prize money : 2000 Bear, Teddy : $

108 sprintf() Enter your first name : warning : this program uses gets (), which is unsafe. Teddy Enter your last name : Bear Enter your prize money : 2000 Bear, Teddy : $ sprintf() format 92

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

新版 明解C言語入門編

新版 明解C言語入門編 328, 4, 110, 189, 103, 11... 318. 274 6 ; 10 ; 5? 48 & & 228! 61!= 42 ^= 66 _ 82 /= 66 /* 3 / 19 ~ 164 OR 53 OR 164 = 66 ( ) 115 ( ) 31 ^ OR 164 [] 89, 241 [] 324 + + 4, 19, 241 + + 22 ++ 67 ++ 73 += 66

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

新・明解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

新・解きながら学ぶC言語

新・解きながら学ぶC言語 330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180

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

C

C C 2017 3 14 1. 2. 3. 4. 2/95 C 1. 3/95 C I 1 // talkback.c: 2 #include 3 #include 4 #define DENSITY 62.4 5 int main(void) 6 { 7 float weight, volume; 8 int size; 9 unsigned long letters;

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

untitled

untitled 串 串 例 : char ch= a ; char str[]= Hello ; 串 列 ch=getchar(); scanf( %c,&ch); 串 gets(str) scanf( %s,str); 8-1 數 ASCII 例 : char ch= A ; printf( %d,ch); // 65 A ascii =0x41 printf( %c,ch); // A 例 : char ch;

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/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

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 - 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

新版 明解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

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

C/C++ - 结构体、共用体、枚举体

C/C++ - 结构体、共用体、枚举体 C/C++ Table of contents 1. 2. 3. 4. 5. 6. 7. 8. 1 C C (struct) C 2 C C (struct) C 2 i // book.c: # include < stdio.h> # define MAX_ TITLE 41 # define MAX_ AUTHOR 31 struct book { char title [ MAX_ TITLE

More information

プログラムの設計と実現II

プログラムの設計と実現II UNIX C ls mkdir man http://www.tj.chiba-u.jp/lecture/prog2/ Ctrl+x, Ctrl+s ( )..[4]% gcc Wall o hoge hoge.c..[5]%./hoge 1 : 1 2 : 2 3 : 3 4 : 0 6..[6]% (! )..[4]% gcc Wall o hoge hoge.c..[5]%!g gcc Wall

More information

C

C C 14 2017 5 31 1. 2. 3. 4. 5. 2/101 C 1. ( ) 4/101 C C ASCII ASCII ASCII 5/101 C 10000 00100111 00010000 ASCII 10000 31H 30H 30H 30H 30H 1 0 0 0 0 0 ASCII 6/101 C 7/101 C ( ) ( ) 8/101 C UNIX ANSI C 9/101

More information

C/C++ - 数组与指针

C/C++ - 数组与指针 C/C++ Table of contents 1. 2. 3. 4. 5. 6. 7. 8. 1 float candy [ 365]; char code [12]; int states [50]; 2 int array [6] = {1, 2, 4, 6, 8, 10}; 3 // day_mon1.c: # include # define MONTHS 12 int

More information

Untitiled

Untitiled 目 立人1 2011 录 目 录 专家视点 权利与责任 班主任批评权的有效运用 齐学红 3 德育园地 立 沿着鲁迅爷爷的足迹 主题队活动案例 郑海娟 4 播下一颗美丽的种子 沿着鲁迅爷爷的足迹 中队活动反思 郑海娟 5 赠人玫瑰 手有余香 关于培养小学生服务意识的一些尝试和思考 孙 勤 6 人 教海纵横 2011 年第 1 期 总第 9 期 主办单位 绍兴市鲁迅小学教育集团 顾 问 编委会主任 编

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

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

( 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

C C

C C C C 2017 3 8 1. 2. 3. 4. char 5. 2/101 C 1. 3/101 C C = 5 (F 32). 9 F C 4/101 C 1 // fal2cel.c: Convert Fah temperature to Cel temperature 2 #include 3 int main(void) 4 { 5 float fah, cel; 6 printf("please

More information

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

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

More information

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 C C trio@seu.edu.cn C C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 Week3 C Week5 Week5 Memory & Pointer

More information

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

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

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

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

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

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

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

Learn_Perl 3-02.pdf

Learn_Perl 3-02.pdf 2 2. 1 h e l l o h e l l o 23 2 4 2.2 2.2.1 2.2.2 d o u b l e 1 e - 1 0 0 1 e 1 0 0 i n t e g e r 2 5 1.25 2.000 3.0 7.25e45 # 7.25 10 45-6.5e24 # 6.5 10 24 # -12e-24 # 12 10-24 # -1.2E-23 # -- E 2.2.3

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

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

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

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 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

数据结构与算法 - Python基础

数据结构与算法 - Python基础 Python 教材及课件 课件及作业见网址 xpzhang.me 1 1. Python 2. 3. (list) (tuple) 4. (dict) (set) 5. 6. 7. 2 Python Python 3 Python 4 Python 1, 100, -8080, 0,... 0x 0-9, a-f 0 xff00, 0 xa432bf 5 1.24, 3.14, -9.80,...

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

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

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un Linux C July 27, 2016 Contents 1 Linux IDE 1 2 GCC 3 2.1 hello.c hello.exe........................... 5 2.2............................... 9 2.2.1 -Wall................................ 9 2.2.2 -E..................................

More information

epub 33-8

epub 33-8 8 1) 2) 3) A S C I I 4 C I / O I / 8.1 8.1.1 1. ANSI C F I L E s t d i o. h typedef struct i n t _ f d ; i n t _ c l e f t ; i n t _ m o d e ; c h a r *_ n e x t ; char *_buff; /* /* /* /* /* 1 5 4 C FILE

More information

翻 那 本 日 记, 好 像 和 自 己 赌 气, 好 像 那 个 人 还 在 乎 一 样, 里 面 的 内 容, 因 为 在 较 着 劲, 就 是 不 愿 意 去 看 那 些 甜 蜜 的 过 往 小 小 的 日 记 本 塞 在 行 李 箱 的 底 部, 安 静 地 呆 在 那 儿, 只 是, 不

翻 那 本 日 记, 好 像 和 自 己 赌 气, 好 像 那 个 人 还 在 乎 一 样, 里 面 的 内 容, 因 为 在 较 着 劲, 就 是 不 愿 意 去 看 那 些 甜 蜜 的 过 往 小 小 的 日 记 本 塞 在 行 李 箱 的 底 部, 安 静 地 呆 在 那 儿, 只 是, 不 蓦 然 回 首 / 作 者 : 温 昀 Chapter 1 如 果 知 道 离 开 了 你 的 我 是 这 么 脆 弱, 那 么 当 初, 我 无 论 如 何 也 会 低 下 自 己 高 高 仰 起 脸 庞, 可 是 陈 然, 你 去 哪 儿 了? 人 生 就 是 这 样, 也 许 就 是 一 个 转 身 过 后, 彼 此 走 出 了 曾 经 的 生 活, 原 本 如 此 熟 悉, 如 此 重 要

More information

<D0A1B0E02E707562>

<D0A1B0E02E707562> 小 一 班 专 题 活 动 生 日 蛋 糕 生 日 蛋 糕 是 孩 子 们 最 喜 欢 的 食 物, 他 们 期 盼 着 每 次 生 日 的 到 来 吹 蜡 烛 许 心 愿 吃 蛋 糕, 经 常 出 现 在 孩 子 们 的 区 域 游 戏 中, 因 此, 我 们 确 定 了 本 次 专 题 研 习 的 方 向 生 日 蛋 糕 结 合 专 题 探 究 的 需 要,11 月 10 日 我 们 同 孩 子

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

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

untitled

untitled 1 7 7.1 7.2 7.3 7.4 7.5 2 7.1 VFT virtual 7.1 3 1 1. 2. public protected public 3. VFT 4. this const volatile 4 2 5. ( ) ( ) 7.1 6. no-static virtual 7.2 7. inline 7.3 5 3 8. this this 9. ( ) ( ) delete

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

We are now living happily. We are now living a happy life. He is very healthy. He is in good health. I am sure that he will succeed. I am sure of his success. I am busy now. I am not free now. May I borrow

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

2_ Bridegroom fast 1 - v1

2_ Bridegroom fast 1 - v1 學 習 主 旨 : 認 識 耶 穌 新 郎 神 的 愛, 和 教 會 新 婦 的 位 份 藉 著 禁 食 來 思 念 耶 穌 更 加 經 歷 耶 穌 的 同 在, 及 對 耶 穌 榮 美 的 開 啟, 直 到 主 再 來 中 經 : 太 9:15 耶 穌 對 他 們 說 : 新 郎 和 陪 伴 之 人 同 在 的 時 候, 陪 伴 之 人 豈 能 哀 慟 呢? 但 日 子 將 到, 新 郎 要 離

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

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

( 表 1) 學 校 基 本 資 料 學 校 類 型 新 竹 市 東 區 新 竹 國 小 班 級 數 55 校 址 新 竹 市 興 學 街 106 號 電 話 傳 真 網 址

( 表 1) 學 校 基 本 資 料 學 校 類 型 新 竹 市 東 區 新 竹 國 小 班 級 數 55 校 址 新 竹 市 興 學 街 106 號 電 話 傳 真 網 址 學 校 課 程 計 畫 備 查 項 目 及 表 格 新 竹 市 104 學 年 度 新 竹 國 小 課 程 計 畫 備 查 項 目 壹 學 校 課 程 發 展 與 規 劃 一 學 校 課 程 計 畫 通 過 課 程 發 展 委 員 會 審 核 之 日 期 ( 含 會 議 記 錄, 簽 到 單 ) 二 學 校 基 本 資 料 ( 表 1) 三 學 校 背 景 分 析 ( 可 自 訂 格 式, 表 2

More information

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

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

More information

( 含 要 ) 1-2 用 或 雇 用, 抑 或 有 無 俸 給 文 職 或 武 職, 政 官 或 事 官 均 屬 之, 其 不 以 具 備 人 資 格 為 限, 因 此 屬 於 最 廣 義 之 念 四 廣 義 念 之 依 服 24 條 之 規 定 : 本 於 受 有 俸 給 之 文 武 職, 及

( 含 要 ) 1-2 用 或 雇 用, 抑 或 有 無 俸 給 文 職 或 武 職, 政 官 或 事 官 均 屬 之, 其 不 以 具 備 人 資 格 為 限, 因 此 屬 於 最 廣 義 之 念 四 廣 義 念 之 依 服 24 條 之 規 定 : 本 於 受 有 俸 給 之 文 武 職, 及 本 學 習 重 點 研 讀 首 先 應 釐 清 不 同 規 對 與 職 人 念 的 定 義, 其 中 之 定 義 從 最 廣 義 廣 義 狹 義 到 最 狹 義 的 人, 都 會 牽 涉 到 規 適 用 上 的 不 同, 而 職 人 涵 蓋 範 圍 比 更 廣, 讀 者 應 注 意 兩 者 之 間 的 區 別 建 議 讀 者 與 考 生 於 開 始 研 讀 之 際, 利 用 本 之 內 容 確 實

More information

〇〇考區105年國中教育會考簡章

〇〇考區105年國中教育會考簡章 高 雄 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 高 雄 市 政 府 教 育 局 104 年 12 月 28 日 高 市 教 高 字 字 第 10438650500 號 函 中 華 民 國 105 年 1 月 15 日 高 雄 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 岡 山 高 級 中 學 地 址 :82041 高 雄

More information

新竹市建華國民中學九十四學年度課程計畫

新竹市建華國民中學九十四學年度課程計畫 目 錄 壹 依 據... 3 貳 目 的... 3 參 學 校 背 景 簡 述 與 課 程 發 展 條 件 分 析... 3 一 學 校 基 本 資 料... 3 二 學 校 課 程 發 展 條 件 分 析 (SWOTS)... 4 肆 學 校 教 育 目 標 與 願 景... 5 ㄧ 學 校 願 景... 5 二 學 校 願 景 圖 像... 5 三 學 校 發 展 方 向 與 展 望... 5

More information

Microsoft Word - 97.01.30軟體設計第二部份範例試題_C++_ _1_.doc

Microsoft Word - 97.01.30軟體設計第二部份範例試題_C++_ _1_.doc 電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 範 例 試 題 (C++) 試 題 編 號 :11900-920201-4 審 定 日 期 : 94 年 7 月 1 日 修 訂 日 期 : 96 年 2 月 1 日 97 年 1 月 30 日 ( 第 二 部 份 ) 電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 應 檢 參 考 資 料 壹 試

More information

- June 意 味 上 梁 不 正 下 梁 歪 地 动 辄 失 去 理 性 而 对 部 下 狂 吠 给 我 滚, 毛 也 曾 因 被 吵 醒 而 对 哨 兵 猛 吼 老 子 揍 你! 并 罚 站 254) 和 大 红 灯 笼 高 高 挂 成 叠 影 的 一 是 太 太 被 老 爷 惯 坏 而 任

- June 意 味 上 梁 不 正 下 梁 歪 地 动 辄 失 去 理 性 而 对 部 下 狂 吠 给 我 滚, 毛 也 曾 因 被 吵 醒 而 对 哨 兵 猛 吼 老 子 揍 你! 并 罚 站 254) 和 大 红 灯 笼 高 高 挂 成 叠 影 的 一 是 太 太 被 老 爷 惯 坏 而 任 从 称 谓 魔 杖 管 窥 中 国 政 要 心 迹 及 中 国 社 会 规 则 ( 中 ) 晚 年 周 恩 来 毛 泽 东 私 人 医 生 回 忆 录 毛 家 湾 纪 实 国 家 的 囚 徒 大 红 灯 笼 高 高 挂 等 禁 域 深 宫 话 语 联 析 夏 刚 君 子 豹 变 和 小 人 革 面 : 主 客 伸 缩 高 下 反 转 的 炎 凉 翻 覆 诸 态 据 传 毛 将 见 上 帝 前 向 毛

More information

PIC_SERVER (11) SMTP ( ) ( ) PIC_SERVER (10) SMTP PIC_SERVER (event driven) PIC_SERVER SMTP 1. E-

PIC_SERVER (11) SMTP  ( ) ( ) PIC_SERVER (10) SMTP  PIC_SERVER (event driven)  PIC_SERVER SMTP  1.  E- (2005-02-01) (2005-04-28) PIC_SERVER (10) SMTP E-mail PIC_SERVER (event driven) E-mail PIC_SERVER SMTP E-mail 1. E-mail E-mail 1 (1) (2) (3) (4) 1 1. 2 E-mail A E-mail B E-mail SMTP(Simple Mail Transfer

More information

封面故事 FENG MIAN GU SHI 32 基于课标 基于学生 提升英语课堂 封面图片 上海市闵行区第四幼儿园 现 代 学 校 37 回归本源 彰显特色 / 胡金芳 出版日期 2015 年 5 月 15 日 35 运用问题情境中的有效提问促进大班 幼儿的语言发展 / 胡金芳 双 月 刊 2015 年第 3 期 总第 63 期 教学实效 / 刘董娴 38 尊重差异 培养能力 提高体育教学实 效

More information

海報.pdf

海報.pdf ......... "" : 170 : 171 1 2-15.... 172 173 6x45 1 2 3 4 5 6 11 x45 1 2 3 4 5 6 (1-6) 7 8 9 (1-6)> 10 11. power point....... Photo impact C D... 174 ( ) 1.10% 2. 3. 4. : 60% 20 % 10% : 1.10% 2.

More information

<4D6963726F736F667420506F776572506F696E74202D20312EB9FEB6FBB1F5B9A4D2B5B4F3D1A7D5E7C1BCA3BAC3E6CFF2D1D0BEBFC9FAB8B4CAD4B5C4BDE1B9B9BBAFC3E6CAD4BFBCBACBCCBDCBF7D3EBCAB5BCF92E707074205BBCE6C8DDC4A3CABD5D>

<4D6963726F736F667420506F776572506F696E74202D20312EB9FEB6FBB1F5B9A4D2B5B4F3D1A7D5E7C1BCA3BAC3E6CFF2D1D0BEBFC9FAB8B4CAD4B5C4BDE1B9B9BBAFC3E6CAD4BFBCBACBCCBDCBF7D3EBCAB5BCF92E707074205BBCE6C8DDC4A3CABD5D> 面 向 研 究 生 复 试 的 结 构 化 面 试 考 核 探 索 与 实 践 哈 尔 滨 工 业 大 学 甄 良 2015 年 11 月 5 日 一 背 景 情 况 ( 一 ) 研 究 生 招 生 的 政 策 背 景 招 生 是 一 个 教 育 热 点, 也 是 一 个 社 会 热 点 国 家 重 要 的 教 育 领 域 改 革 文 件 都 对 招 生 改 革 出 了 明 确 要 求 国 务 院

More information

莊 子

莊 子 作 家 追 踪 莊 子 鄧 城 鋒 博 士 2012 年 5 月 5 日 1 1. 莊 子 與 莊 子 2. 逍 遙 遊 要 義 3. 齊 物 養 生 要 義 4. 莊 子 與 文 學 2 莊 子 ( 前 369?- 前 286?) 莊 子 之 家 世 及 社 會 地 位 有 書 可 讀, 不 耕 不 役 其 學 無 所 不 窺, 不 求 實 用 沒 落 貴 族 消 極 厭 世, 不 求 上 進 莊

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

新北考區105年國中教育會考簡章

新北考區105年國中教育會考簡章 新 北 考 區 105 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 新 北 市 政 府 教 育 局 104 年 12 月 22 日 新 北 教 中 字 第 1042404516 號 函 中 華 民 國 105 年 1 月 15 日 新 北 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 新 北 市 立 新 莊 高 級 中 學 地 址 :24217

More information

105 年 國 中 教 育 會 考 重 要 日 期 項 目 日 期 及 時 間 報 名 1. 集 體 報 名 :105 年 3 月 10 日 ( 星 期 四 ) 至 3 月 12 日 ( 星 期 六 ) 每 日 8:00~12:00 13:30~17:00 2. 個 別 報 名 : 於 上 網 填

105 年 國 中 教 育 會 考 重 要 日 期 項 目 日 期 及 時 間 報 名 1. 集 體 報 名 :105 年 3 月 10 日 ( 星 期 四 ) 至 3 月 12 日 ( 星 期 六 ) 每 日 8:00~12:00 13:30~17:00 2. 個 別 報 名 : 於 上 網 填 屏 東 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 屏 東 縣 政 府 104 年 12 月 30 日 屏 府 教 學 字 第 10480599200 號 函 中 華 民 國 105 年 1 月 15 日 屏 東 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 屏 北 高 級 中 學 地 址 : 屏 東 縣 鹽 埔 鄉 彭 厝

More information

C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1

C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1 C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 月 3 日 1 1 INPUTOUTPUT 1 InputOutput 题目描述 用 cin 输入你的姓名 ( 没有空格 ) 和年龄 ( 整数 ), 并用 cout 输出 输入输出符合以下范例 输入 master 999 输出 I am master, 999 years old. 注意 "," 后面有一个空格,"." 结束,

More information

臺北市101學年度學生舞蹈比賽秩序冊(個人組)

臺北市101學年度學生舞蹈比賽秩序冊(個人組) 臺 北 市 104 學 年 度 學 生 舞 蹈 比 賽 秩 序 冊 ( 個 人 組 ) 場 次 :1-1 時 間 :104/11/10 上 午 08:30 ~ 12:30 場 地 : 雙 園 國 中 綜 合 大 樓 二 樓 演 藝 廳 組 別 : 高 中 個 人 組 現 代 舞 東 區 東 區 1 郭 思 蓮 soulmate 臺 北 市 立 麗 山 高 級 中 學 東 區 2 張 乃 勻 詠 敘

More information

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

國立桃園高中96學年度新生始業輔導新生手冊目錄 澎 湖 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 澎 湖 縣 政 府 104 年 12 月 15 日 府 教 學 字 第 1040072602 號 函 中 華 民 國 105 年 1 月 15 日 澎 湖 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 馬 公 高 級 中 學 地 址 : 澎 湖 縣 馬 公 市 中 華 路 369

More information

2-7.FIT)

2-7.FIT) 文 化 园 地 8 2009 年 8 月 18 日 星 期 二 E-mail:liuliyuan@qunlitimes.com 群 立 文 化 感 受 今 天 你 开 心 了 吗? 周 传 喜 群 雄 争 立 竞 争 意 识 ; 傲 立 群 雄 奋 斗 目 标, 这 几 句 话 一 直 是 群 立 的 文 化 和 方 针, 也 同 样 是 我 很 喜 欢 的 座 右 铭 我 想 这 几 句 话 生

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

3 月 17 日 托 三 班 正 式 开 班 了, 才 来 的 时 候 他 们 舍 不 得 离 开 爸 爸 妈 妈 和 熟 悉 的 家 庭, 到 现 在 半 个 月 过 去 了, 孩 子 们 对 幼 儿 园 的 生 活 已 经 非 常 熟 悉 了 而 这 半 个 月 的 时 间 里 他 们 也 成 长 了 许 多, 他 们 不 仅 不 哭 了, 还 能 做 到 独 立 入 厕 独 立 洗 手 独 立

More information

Microsoft Word - chap13.doc

Microsoft Word - chap13.doc ï FILE dã Ä o rô qî ô Ö ƒù å o ô ÃÓ FILE Ã Ù Ö o v-> ª w ï FILE d wã +1 ~ c:\temp w Õx test.dat Ã Û vä à n ïw à test.dat 13-2a /* File name: ex13-2a.c */ #include char ch; fptr = fopen("c:\\temp\\test.dat",

More information

高雄市左營國民小學八十九學年度第一學期一年級總體課程教學進度表

高雄市左營國民小學八十九學年度第一學期一年級總體課程教學進度表 高 雄 市 前 鎮 區 紅 毛 港 國 民 小 學 102 學 年 度 第 1 學 期 ( 五 ) 年 級 各 領 域 教 學 進 度 總 表 教 學 者 :( 五 ) 年 級 教 學 團 隊 彈 性 學 習 時 數 -5 節 班 級 活 動 週 別 日 期 一 0830-0901 二 0902-0908 三 0909-0915 四 0916-0922 五 0923-0929 學 校 活 動 學 年

More information

FY.DOC

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

More information

untitled

untitled () 1 2 (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) 3 (1) (2) (3) (1) (2) (3) 4 A. 8 9 9 10 12 14 14 15 B. 17 : 18 18 19 22 23 5 26 31 61 : - 78 78 81 : 86 88-92 94 99 106 125 6 : 150 150 150 C. 165 :? 166

More information

untitled

untitled 1 1.1 1.2 1.3 1.4 1.5 ++ 1.6 ++ 2 BNF 3 4 5 6 7 8 1.2 9 1.2 IF ELSE 10 1.2 11 1.2 12 1.3 Ada, Modula-2 Simula Smalltalk-80 C++, Objected Pascal(Delphi), Java, C#, VB.NET C++: C OOPL Java: C++ OOPL C# C++

More information

区 域 活 动 进 入 中 班 我 们 区 域 的 设 置 和 活 动 材 料 都 有 所 变 化, 同 时 也 吸 引 孩 子 们 积 极 的 参 与 学 习 操 作 区 的 新 材 料 他 们 最 喜 欢, 孩 子 们 用 立 方 块 进 行 推 理 操 作 用 扑 克 牌 进 行 接 龙 游

区 域 活 动 进 入 中 班 我 们 区 域 的 设 置 和 活 动 材 料 都 有 所 变 化, 同 时 也 吸 引 孩 子 们 积 极 的 参 与 学 习 操 作 区 的 新 材 料 他 们 最 喜 欢, 孩 子 们 用 立 方 块 进 行 推 理 操 作 用 扑 克 牌 进 行 接 龙 游 日 常 生 活 本 月 我 们 日 常 生 活 活 动 的 重 点 :1. 让 孩 子 养 成 良 好 的 生 活 习 惯, 注 重 生 活 细 节 如 : 在 换 好 鞋 子 后 能 将 鞋 子 整 齐 的 摆 放 进 鞋 架 坐 在 椅 子 上 换 鞋 正 确 的 收 放 椅 子 等 2 让 孩 子 有 自 我 照 顾 的 意 识 如, 让 孩 子 感 受 自 己 的 冷 热 并 告 知 老 师,

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

Guide to Install SATA Hard Disks

Guide to Install SATA Hard Disks SATA RAID 1. SATA. 2 1.1 SATA. 2 1.2 SATA 2 2. RAID (RAID 0 / RAID 1 / JBOD).. 4 2.1 RAID. 4 2.2 RAID 5 2.3 RAID 0 6 2.4 RAID 1.. 10 2.5 JBOD.. 16 3. Windows 2000 / Windows XP 20 1. SATA 1.1 SATA Serial

More information

10 月 8 日 : 晴 糧 魯 道 自 殺 之 處, 他 的 兒 子 與 族 3 月 29 日 冷 風 過 境, 強 風 人 集 體 跳 崖 自 殺, 他 們 不 屈 膝 7:00 土 城 捷 運 站, 三 輛 七 級, 五 天 下 四 天 的 雨, 結 的 精 神, 才 是 賽 德 克. 巴 萊

10 月 8 日 : 晴 糧 魯 道 自 殺 之 處, 他 的 兒 子 與 族 3 月 29 日 冷 風 過 境, 強 風 人 集 體 跳 崖 自 殺, 他 們 不 屈 膝 7:00 土 城 捷 運 站, 三 輛 七 級, 五 天 下 四 天 的 雨, 結 的 精 神, 才 是 賽 德 克. 巴 萊 勇闖鬼門關 見識山難事件 EXTRA 能高越嶺古道 二 山的美與醜 本文章是本人親身經歷整個過程的真實故事 能高越嶺古道 二( 在無外界援助下 一步一 壺 頭燈 相機等 外再加一 用鋁箔片禦寒 這樣感覺輕鬆 步走回安全地方 表現出登山 個小背包放回程下山要換的乾 多了 周五看氣象東部22 者不怨天尤人的堅強精神 今 衣服 試一下重量 糟糕 人 31 有雨 嚮導說 請挑夫 年七月完成了合歡古道一小段

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

Ps22Pdf

Ps22Pdf ,,,,,,,,,,, (,,,, ),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ;,, ;,,,,,, 1,,,,,,,,,,,,,,,,,,, ( ),,,, 1 ( 1) ( 4)? ( 5) ( 7) ( 8), ( 10) ( 11),? ( 12) ( 14) ( 16) ( 17) ( 18) ( 19) ( 22) ( 23) ( 25)

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit 留 学 澳 洲 英 语 讲 座 English for Study in Australia 第 十 三 课 : 与 同 学 一 起 做 功 课 Lesson 13: Working together L1 Male 各 位 听 众 朋 友 好, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female 各 位 好, 我 是 马 健 媛 L1 Male L1

More information

download.kaoyan.com_2006ÄêÌì½ò¹¤Òµ´óѧ¸ß¼¶ÓïÑÔ³ÌÐòÉè¼Æ£¨409£©¿¼ÑÐÊÔÌâ

download.kaoyan.com_2006ÄêÌì½ò¹¤Òµ´óѧ¸ß¼¶ÓïÑÔ³ÌÐòÉè¼Æ£¨409£©¿¼ÑÐÊÔÌâ 考生注意 : 本试卷共七大题, 满分 150 分 考试时间为 3 小时 ; 所有答案均写在答题纸上 ( 注明题号 ), 在此答题一律无效无效 一 选择题 ( 本题共 20 小题, 每小题 2 分, 满分 40 分 ) 1 char ch 1 2 A 0

More information

C, Win-TC Turbo C,, C, C,,,, C C, : Win-TC C, 23,,, 15,, C Turbo C Win-TC Turbo C,,,, 2005 1 W in -TC 1 Win-TC 1 1. Win-TC 1 2. Win-TC 1 3. Win-TC 1 2 Win-TC 3 1. 3 2. 3 3. 4 4. 4 5. 4 6. 4 7. 5 8. 5 9.

More information

Computer Architecture

Computer Architecture ECE 3120 Computer Systems Assembly Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Prev: Basic computer concepts

More information

高中英文科教師甄試心得

高中英文科教師甄試心得 高 中 英 文 科 教 師 甄 試 心 得 英 語 學 系 碩 士 班 林 俊 呈 高 雄 市 立 高 雄 高 級 中 學 今 年 第 一 次 參 加 教 師 甄 試, 能 夠 在 尚 未 服 兵 役 前 便 考 上 高 雄 市 立 高 雄 高 級 中 學 專 任 教 師, 自 己 覺 得 很 意 外, 也 很 幸 運 考 上 後 不 久 在 與 雄 中 校 長 的 會 談 中, 校 長 的 一 句

More information

( 一 ) 實 習 的 時 候 就 和 讀 書 會 的 同 學 一 起 把 陳 嘉 陽 紮 實 地 讀 過 一 遍 了, 也 因 此 在 考 完 教 檢 之 後, 我 們 只 有 把 不 熟 或 是 常 考 的 章 節 再 導 讀 一 次 ( 例 如 : 統 計 行 政 法 規 ), 主 力 則 是

( 一 ) 實 習 的 時 候 就 和 讀 書 會 的 同 學 一 起 把 陳 嘉 陽 紮 實 地 讀 過 一 遍 了, 也 因 此 在 考 完 教 檢 之 後, 我 們 只 有 把 不 熟 或 是 常 考 的 章 節 再 導 讀 一 次 ( 例 如 : 統 計 行 政 法 規 ), 主 力 則 是 確 立 目 標, 全 力 衝 刺 102 年 國 中 英 文 科 教 甄 準 備 心 得 主 修 社 會 教 育 學 系 輔 修 英 語 學 系 100 級 臺 北 市 立 東 湖 國 民 中 學 王 建 順 壹 102 國 中 英 文 科 教 甄 準 備 心 得 -- 筆 試 篇 有 幸 能 在 第 一 年 的 第 一 場 國 中 教 甄 脫 穎 而 出, 一 路 上 很 感 謝 前 輩 學 長

More information

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2 PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native

More information

Love Actually 真 的 戀 愛 了!? 焦 點 主 題 2035 年 一 個 寒 冷 卻 又 放 晴 的 下 午, 爸 媽 一 大 清 早 已 上 班, 只 得 小 奈 獨 個 兒 待 在 家 中, 奢 侈 地 享 受 著 她 的 春 節 假 期 剛 度 過 了 期 考 的 艱 苦 歲

Love Actually 真 的 戀 愛 了!? 焦 點 主 題 2035 年 一 個 寒 冷 卻 又 放 晴 的 下 午, 爸 媽 一 大 清 早 已 上 班, 只 得 小 奈 獨 個 兒 待 在 家 中, 奢 侈 地 享 受 著 她 的 春 節 假 期 剛 度 過 了 期 考 的 艱 苦 歲 愛 情, 每 一 個 人 都 十 分 渴 望 有 的, 不 論 成 年 人 還 是 中 學 生 但 是, 你 知 道 甚 麼 是 愛 情 嗎? 如 何 才 可 以 擁 有 真 正 的 愛 情? 池 田 先 生 對 愛 情 方 面 有 些 甚 麼 指 導 呢? 01 焦 點 主 題 Love Actually... 真 的 戀 愛 了!? 09 Love Song 11 女 未 來 部 長 專 訪 15

More information

編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢? 6 元? 8 元? 10 元? 十 年 後 又 賣 多 少 錢?( 大 概 20 元 有

編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢? 6 元? 8 元? 10 元? 十 年 後 又 賣 多 少 錢?( 大 概 20 元 有 34 第 期 二 O 一 三 年 六 月 專 題 : 培 養 孩 子 的 財 商 活 動 消 息 : 義 工 上 海 交 流 之 旅 義 工 土 風 舞 美 國 交 流 記 主 題 : 理 財 編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢?

More information

现代人的健康生活方式

现代人的健康生活方式 刊 于 上 图 讲 座 专 刊 2004 年 第 1 期 现 代 人 的 健 康 生 活 方 式 ( 摘 要 ) 中 山 医 院 顾 问 博 导 杨 秉 辉 杨 秉 辉,1962 年 毕 业 于 上 海 第 一 医 科 大 学 著 有 肝 胆 肿 瘤 学 等 专 著, 曾 获 国 家 科 技 进 步 一 等 奖 现 任 国 务 院 学 术 委 员 会 临 床 医 学 评 议 组 召 集 人 中 国

More information