C/C++ - 数组与指针

Size: px
Start display at page:

Download "C/C++ - 数组与指针"

Transcription

1 C/C++

2 Table of contents

3

4 float candy [ 365]; char code [12]; int states [50]; 2

5 int array [6] = {1, 2, 4, 6, 8, 10}; 3

6 // day_mon1.c: # include <stdio.h> # define MONTHS 12 int main ( void ) { int i; int days [ MONTHS ] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; for ( i = 0; i < MONTHS ; i ++) printf (" Month %2d has %2d days.\n", i+1, days [i]); return 0; } 4

7 Month 1 has 31 days. Month 2 has 28 days. Month 3 has 31 days. Month 4 has 30 days. Month 5 has 31 days. Month 6 has 30 days. Month 7 has 31 days. Month 8 has 31 days. Month 9 has 30 days. Month 10 has 31 days. Month 11 has 30 days. Month 12 has 31 days. 5

8 const // day_mon1_const.c: # include <stdio.h> # define MONTHS 12 int main ( void ) { const int days [ MONTHS ] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int i; for ( i = 0; i < MONTHS ; i ++) printf (" Month %2d has %2d days.\n", i+1, days [i]); return 0; } 6

9 const const 7

10 ... // no_data.c: # include <stdio.h> # define SIZE 6 int main ( void ) { int no_data [ SIZE ]; int i; printf ("%2s%14 s\n", "i", " no_data [i]"); for ( i = 0; i < SIZE ; i ++) printf ("%2d%14 d\n", i, no_data [i]); return 0; } 8

11 ... i no_data [i]

12 ... 10

13 ... // some_data.c: # include <stdio.h> # define SIZE 6 int main ( void ) { int some_ data [ SIZE ] = {11, 12}; int i; printf ("%2s%14 s\n", "i", " no_data [i]"); for ( i = 0; i < SIZE ; i ++) printf ("%2d%14 d\n", i, some_data [i]); return 0; } 11

14 ... i no_data [i]

15

16 ... 14

17 ... # include <stdio.h> # define MONTHS 12 int main ( void ) { int i; const int days [] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; for ( i = 0; i < sizeof days / sizeof days [0]; i ++) printf (" Month %2d has %2d days.\n", i+1, days [i]); return 0; } 15

18 ... sizeof days sizeof days[0] 16

19 C99 C int arr [6] = {0, 0, 0, 0, 0, 212}; 17

20 C99 C int arr [6] = {0, 0, 0, 0, 0, 212}; C99 int arr [6] = {[ 5] = 212}; // set arr [5] to

21 C99 // designate.c # include <stdio.h> # define MONTHS 12 int main ( void ) { int days [ MONTHS ] = {31, 28, [4] = 31, 30, 31, [1] = 29}; int i; for ( i = 0; i < MONTHS ; i ++) printf (" Month %2d has %2d days.\n", i+1, days [i]); return 0; } 18

22 C99 Month 1 has 31 days. Month 2 has 29 days. Month 3 has 0 days. Month 4 has 0 days. Month 5 has 31 days. Month 6 has 30 days. Month 7 has 31 days. Month 8 has 0 days. Month 9 has 0 days. Month 10 has 0 days. Month 11 has 0 days. Month 12 has 0 days. 19

23 C

24 C 21

25 int main ( void ) { int arr1 [5] = {1, 2, 3, 4}; int arr2 [5]; } arr2 = arr1 ; // invalid arr2 [5] = arr1 [5]; // OK arr2 [5] = {1, 2, 3, 4}; // invalid 22

26 int arr [20];

27 i // bounds.c # include <stdio.h> # define SIZE 4 int main ( void ) { int value1 = 14, value2 = 88; int arr [ SIZE ]; int i; printf (" value1 = %d, value2 = %d\n", value1, value2 ); for ( i = -1; i <= SIZE ; i ++) arr [ i] = 2 * i + 1; for ( i = -1; i < 7; i ++) printf ("%2d %d\n", i, arr [i]); printf (" value1 = %d, value2 = %d\n", 24

28 ii value1, value2 ); } return 0; 25

29 value1 = 14, value2 = value1 = -1, value2 = 9 26

30 int n = 5; int m = 8; float a1 [5]; // OK float a2 [5*2 + 1]; // OK float a3[ sizeof ( int ) + 1]; // OK float a4 [ -1]; // Invalid float a5 [0]; // Invalid float a6 [2.5]; // Invalid float a7 [( int ) 2.5]; //OK, float to int float a8[n]; // C99 OK float a9[m]; // C99 OK 27

31

32 28

33 i /* rain. c -- finds yearly totals, yearly average, and monthly average for several years of rainfall data */ # include <stdio.h> # define MONTHS 12 // number of months in a year # define YEARS 5 // number of years of data int main ( void ) { // initializing rainfall data for const float rain [ YEARS ][ MONTHS ] = { { 4.3,4.3,4.3,3.0,2.0,1.2,0.2,0.2,0.4,2.4,3.5,6.6 }, { 8.5,8.2,1.2,1.6,2.4,0.0,5.2,0.9,0.3,0.9,1.4,7.3 }, { 9.1,8.5,6.7,4.3,2.1,0.8,0.2,0.2,1.1,2.3,6.1,8.4 }, { 7.2,9.9,8.4,3.3,1.2,0.8,0.4,0.0,0.6,1.7,4.3,6.2 }, { 7.6,5.6,3.8,2.8,3.8,0.2,0.0,0.0,0.0,1.3,2.6,5.2 } }; int year, month ; float subtot, total ; 29

34 ii printf (" YEAR RAINFALL ( inches )\n"); for ( year = 0, total = 0; year < YEARS ; year ++) { // for each year, sum rainfall for each month for ( month = 0, subtot = 0; month < MONTHS ; month ++) subtot += rain [ year ][ month ]; printf ("%5d %15.1 f\n", year, subtot ); total += subtot ; // total for all years } printf ("\ nthe yearly average is %.1 f inches.\n\n", total / YEARS ); printf (" MONTHLY AVERAGES :\n"); printf (" Jan Feb Mar Apr May Jun "); printf (" Jul Aug Sep Oct Nov Dec \ n"); for ( month = 0; month < MONTHS ; month ++) { // for each month, sum for ( year = 0, subtot =0; year < YEARS ; year ++) 30

35 iii subtot += rain [ year ][ month ]; printf (" %4.1 f", subtot / YEARS ); } printf ("\n"); } return 0; 31

36 YEAR RAINFALL ( inches ) The yearly average is 39.4 inches. MONTHLY AVERAGES : Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

37 sometype ar1 [5] = { val1, val2, val3, val4, val5 }; 33

38 rain[5][12] 5 12 float float 5 34

39 const float rain [ YEARS ][ MONTHS ] = { {4.3,4.3,4.3,3.0,2.0,1.2,0.2,0.2,0.4,2.4,3.5,6.6}, {8.5,8.2,1.2,1.6,2.4,0.0,5.2,0.9,0.3,0.9,1.4,7.3}, {9.1,8.5,6.7,4.3,2.1,0.8,0.2,0.2,1.1,2.3,6.1,8.4}, {7.2,9.9,8.4,3.3,1.2,0.8,0.4,0.0,0.6,1.7,4.3,6.2}, {7.6,5.6,3.8,2.8,3.8,0.2,0.0,0.0,0.0,1.3,2.6,5.2} }; 35

40

41 0 37

42 int box [10][20][30]; box

43

44 39

45 40

46 array array == & array [0]; 40

47 i // pnt_ add. c -- pointer addition # include <stdio.h> # define SIZE 4 int main ( void ) { short dates [ SIZE ]; short * pti ; short index ; double bills [ SIZE ]; double * ptf ; pti = dates ; // assign address of array to pointer ptf = bills ; 41

48 ii printf (" %23 s %14 s\n", " short ", " double "); for ( index = 0; index < SIZE ; index ++) printf (" pointers + %d: %14 p %14 p\n", index, pti + index, ptf + index ); } return 0; 42

49 short double pointers + 0: 0 x7fff5fbff7d0 0 x7fff5fbff7b0 pointers + 1: 0 x7fff5fbff7d2 0 x7fff5fbff7b8 pointers + 2: 0 x7fff5fbff7d4 0 x7fff5fbff7c0 pointers + 3: 0 x7fff5fbff7d6 0 x7fff5fbff7c8 43

50 C 1 44

51 * 1 45

52 dates + 2 == & dates [2]; // *( dates + 2) == dates [2]; // 46

53 C array[n] *(array + n) array n 47

54 *(dates+2) *dates+2 * + (*dates)+2 *( dates + 2) // dates * dates + 2 // dates 2 48

55 /* day_ mon3. c -- uses pointer notation */ # include <stdio.h> # define MONTHS 12 int main ( void ) { int index ; int days [ MONTHS ] = {31,28,31,30,31,30, 31,31,30,31,30,31}; } for ( index = 0; index < MONTHS ; index ++) printf (" Month %2d has %d days.\n", index +1, *( days + index )); // same as days [ index ] return 0; 49

56

57 50

58 int sum ( int * ar) { int i; int total = 0; for ( i = 0; i < 10; i ++) total += ar[i]; } return total ; 51

59 int sum ( int * ar) { int i; int total = 0; for ( i = 0; i < 10; i ++) total += ar[i]; } return total ; 10 51

60 int sum ( int * ar, int n) { int i; int total = 0; for (i = 0; i < n; i ++) total += ar[i]; } return total ; 52

61 int sum ( int * ar, int n) { int i; int total = 0; for (i = 0; i < n; i ++) total += ar[i]; } return total ; 52

62 int sum ( int * ar, int n); int sum ( int *, int ); int sum ( int ar [], int n); int sum ( int [], int ); 53

63 int sum ( int * ar, int n) {... } int sum ( int ar [], int n) {... } 54

64 55

65 i // sum_ arr1. c -- sums the elements of an array # include <stdio.h> # define SIZE 10 int sum ( int ar [], int n); int main ( void ) { int marbles [ SIZE ] = {20,10, 5,39, 4, 16,19,26,31,20}; long answer ; answer = sum ( marbles, SIZE ); printf (" The total number of marbles is % ld.\ n", answer ); 56

66 ii } printf (" The size of marbles is %lu bytes.\n", sizeof marbles ); return 0; int sum ( int *ar, int n) { int i; int total = 0; for (i = 0; i < n; i ++) total += ar[i]; printf (" The size of ar is %lu bytes.\n", sizeof ar); 57

67 iii } return total ; 58

68 The size of ar is 8 bytes. The total number of marbles is 190. The size of marbles is 40 bytes. 59

69 The size of ar is 8 bytes. The total number of marbles is 190. The size of marbles is 40 bytes. marbles 40 marbles 10 int 4 ar 8 ar marbles 59

70 sum() 60

71 61

72 i // sum_ arr2. c -- sums the elements of an array # include <stdio.h> # define SIZE 10 int sump ( int * start, int * end ); int main ( void ) { int marbles [ SIZE ] = {20,10,5,39,4, 16,19,26,31,20}; long answer ; answer = sump ( marbles, marbles + SIZE ); printf (" The total number of marbles is % ld.\ n", answer ); return 0; } 62

73 ii /* use pointer arithmetic */ int sump ( int * start, int * end ) { int total = 0; while ( start < end ) { total += * start ; start ++; } return total ; } 63

74 start marbles total += *start total start++ start 1 64

75 sump() while ( start < end ) end end 65

76 sump() while ( start < end ) end end C 65

77 sump() while ( start < end ) end end C answer = sump ( marbles, marbles + SIZE ); 65

78 end answer = sump ( marbles, marbles + SIZE - 1); 66

79 end answer = sump ( marbles, marbles + SIZE - 1); C marbles+size marbles[size] 66

80 total += * start ; start ++; total += * start ++; * start *start

81 total += * start ; start ++; total += * start ++; * start *start 1 1 total += *start++ total 1 67

82 total += * start ; start ++; total += * start ++; * start *start 1 1 total += *start++ total 1 total += *++start 1 total 67

83 total += * start ; start ++; total += * start ++; * start *start 1 1 total += *start++ total 1 total += *++start 1 total (*start)++ start

84 i // order. c -- precedence in pointer operations # include <stdio.h> int data [2] = {100, 200}; int moredata [2] = {300, 400}; int main ( void ) { int * p1, * p2, * p3; p1 = p2 = data ; p3 = moredata ; printf ("*p1 = %d, *p2 = %d, *p3 = %d\n", *p1, *p2, *p3); 68

85 ii printf ("*p1 ++ = %d, *++ p2 = %d, (* p3)++ = %d\n ", *p1 ++, *++ p2, (* p3)++) ; printf ("*p1 = %d, *p2 = %d, *p3 = %d\n", *p1, *p2, *p3); } return 0; 69

86 *p1 = 100, *p2 = 100, *p3 = 300 *p1 ++ = 100, *++ p2 = 200, (* p3)++ = 300 *p1 = 200, *p2 = 200, *p3 =

87 C ar[i] *( ar+i) ar ar ar++ 71

88

89 int urn [5] = {100,200,300,400,500}; int * ptr, * ptr1, * ptr2 ; 72

90 1 (assignment) & ptr1 = urn ; ptr2 = & urn [2]; double int 73

91 2 ( dereferencing) * 3 & 74

92 4 ptr = urn ptr + 4 &urn[4] 5 ptr = &urn[2] ptr++ ptr urn[3] 75

93 6 ptr = &urn[4] ptr - 2 &urn[2] 7 ptr = &urn[4] ptr-- ptr urn[3] 76

94 8 ptr1 = &urn[2], ptr2 = &urn[4] ptr2 - ptr

95 i // ptr_ops. c -- pointer operations # include <stdio.h> int main ( void ) { int urn [5] = {100,200,300,400,500}; int * ptr1, * ptr2, * ptr3 ; ptr1 = urn ; ptr2 = & urn [2]; printf (" pointer value, dereferenced pointer, pointer address :\n"); printf (" ptr1 = %p, * ptr1 =%d, & ptr1 = %p\n", ptr1, *ptr1, & ptr1 ); ptr3 = ptr1 + 4; 78

96 ii printf ("\ nadding an int to a pointer :\n"); printf (" ptr1 + 4 = %p, *( ptr4 + 3) = %d\n", ptr1 + 4, *( ptr1 + 3)); ptr1 ++; printf ("\ nvalues after ptr1 ++:\ n"); printf (" ptr1 = %p, * ptr1 =%d, & ptr1 = %p\n", ptr1, *ptr1, & ptr1 ); ptr2 - -; printf ("\ nvalues after -- ptr2 :\n"); printf (" ptr2 = %p, * ptr2 = %d, & ptr2 = %p\n", ptr2, *ptr2, & ptr2 ); -- ptr1 ; ++ ptr2 ; 79

97 iii printf ("\ npointers reset to original values :\ n"); printf (" ptr1 = %p, ptr2 = %p\n", ptr1, ptr2 ); printf ("\ nsubtracting one pointer from another :\ n"); printf (" ptr2 = %p, ptr1 = %p, ptr2 - ptr1 = %ld\n", ptr2, ptr1, ptr2 - ptr1 ); printf ("\ nsubtracting an int from a pointer :\ n"); printf (" ptr3 = %p, ptr3-2 = %p\n", ptr3, ptr3-2); } return 0; 80

98 i pointer value, dereferenced pointer, pointer address : ptr1 = 0 x7fff5fbff7c0, * ptr1 =100, & ptr1 = 0 x7fff5fbff7b0 adding an int to a pointer : ptr1 + 4 = 0 x7fff5fbff7d0, *( ptr4 + 3) = 400 values after ptr1 ++: ptr1 = 0 x7fff5fbff7c4, * ptr1 =200, & ptr1 = 0 x7fff5fbff7b0 values after -- ptr2 : ptr2 = 0 x7fff5fbff7c4, * ptr2 = 200, & ptr2 = 0 x7fff5fbff7a8 Pointers reset to original values : 81

99 ii ptr1 = 0 x7fff5fbff7c0, ptr2 = 0 x7fff5fbff7c8 subtracting one pointer from another : ptr2 = 0 x7fff5fbff7c8, ptr1 = 0 x7fff5fbff7c0, ptr2 - ptr1 = 2 subtracting an int from a pointer : ptr3 = 0 x7fff5fbff7d0, ptr3-2 = 0 x7fff5fbff7c8 82

100 C 83

101 int *pt; // *pt = 5; // 84

102 int *pt; // *pt = 5; // *pt = 5 5 pt pt 5 84

103 85

104 malloc() 85

105 int urn [3]; int * ptr1, * ptr2 ; ptr1++; ptr2 = ptr1 + 2; ptr2 = urn + 1; urn++; ptr2 = ptr2 + ptr1; ptr2 = urn * ptr1; 86

106

107 int int int 87

108 88

109 89

110 void add_ to ( double arr [], int n, double val ) { int i; for (i = 0; i < n; i ++) arr [i] += val ; } 90

111 void add_ to ( double arr [], int n, double val ) { int i; for (i = 0; i < n; i ++) arr [i] += val ; } 90

112 ar arr[i]++ 1 void sum ( int arr [], int n) { int i; int sum = 0; for (i = 0; i < n; i ++) sum += arr [i ]++; } 91

113 const ANSI C const void sum ( const int arr [], int n); // void sum ( const int arr [], int n) // { int i; int sum = 0; for (i = 0; i < n; i ++) sum += arr [i]; } arr arr[i]++ 92

114 const const const const const 93

115 const i /* arf.c -- array functions */ # include <stdio.h> # define SIZE 5 void show_ array ( const double ar [], int n); void mult_ array ( double ar [], int n, double mult ) ; int main ( void ) { double dip [ SIZE ] = {20.0, 17.66, 8.2, 15.3, 22.22}; printf (" The original dip array :\n"); show_array (dip, SIZE ); mult_array (dip, SIZE, 2.5) ; 94

116 const ii printf (" The dip array after calling mult_ array :\n"); show_array (dip, SIZE ); } return 0; /* displays array contents */ void show_ array ( const double ar [], int n) { int i; for (i = 0; i < n; i ++) printf (" %8.3 f ", ar[i]); putchar ( \n ); } 95

117 const iii /* multiplies each array member by the same multiplier */ void mult_ array ( double ar [], int n, double mult ) { int i; for (i = 0; i < n; i ++) ar[i] *= mult ; } 96

118 const The original dip array : The dip array after calling mult_ array ():

119 const 1. const const double PI = ; #define # define PI

120 const 2. const 99

121 const const # define MONTHS const int days [ MONTHS ] = {31,28,31,30,31,30, 31,31,30,31,30,31};... days [9] = 44; // 100

122 const double rates [4] = {8.9, 10.1, 9.4, 3. 2}; const double * pd = rates ; //pd *pd = 29.89; // pd [2] = ; // rates [0] = 99.99; // rates pd ++; // pd rates[1] 101

123 const void show_ array ( const double * ar, int n); 102

124 const const (a) double rates [4] = {8.9, 10.1, 9.4, 3. 2}; const double locked [4] = {0.8, 0.7, 0.2, 0.3}; const double * pc = rates ; // pc = locked ; // pc = & rates [3]; // 103

125 const const (b) double rates [4] = {8.9, 10.1, 9.4, 3. 2}; const double locked [4] = {0.8, 0.7, 0.2, 0.3}; double * pnc = rates ; // pnc = locked ; // pnc = & rates [3]; // 104

126 const show_array show_array ( rates, 4); // show_array ( locked, 4); // mult_array mult_array ( rates, 4); // mult_array ( locked, 4); // const const 105

127 const 3. const double rates [4] = {8.9, 10.1, 9.4, 3. 2}; double const * pc = rates ; //pc pc = & rates [3]; // *pc = 2.2; // rates[0] 106

128 const 4. const double rates [4] = {8.9, 10.1, 9.4, 3. 2}; const double const * pc = rates ; pc = & rates [3]; // *pc = 2.2; // 107

129

130 108

131 int zippo [4][2]; // zippo zippo int zippo int 109

132 zippo zippo == &zippo[0] zippo[0] int zippo[0] == &zippo[0][0] zippo zippo[0] zippo == zippo[0] 110

133 1 zippo zipp[0] zippo int zipp[0] int zippo+1 zippo[0]+1 111

134 zippo[0] zippo[0][0] *( zippo [0]) == zippo [0][0] int 112

135 zippo zippo[0] * zippo == zippo [0] zippo [0] == & zippo [0][0] * zippo == & zippo [0][0] *& zippo [0][0] == zippo [0][0] ** zippo == zippo [0][0] 113

136 zippo 114

137 i /* zippo1.c -- zippo info */ # include <stdio.h> int main ( void ) { int zippo [4][2] = { {2,4}, {6,8}, {1,3}, {5,7} }; printf (" zippo = %p, zippo +1 = % p\ n", zippo, zippo +1) ; printf (" zippo [0] = %p, zippo [0]+1 = %p\n", zippo [0], zippo [0]+1) ; printf (" * zippo = %p, * zippo +1 = %p\n", * zippo, * zippo +1) ; printf (" zippo [0][0] = %d\n", zippo [0][0]) ; printf (" * zippo [0] = %d\n", * zippo [0]) ; 115

138 ii printf ("** zippo = %d\n", ** zippo ); printf (" zippo [2][1] = %d\n", zippo [2][1]) ; printf (" *(*( zippo +2) + 1) = %d\n", *(*( zippo +2) + 1) ); } return 0; 116

139 zippo = 5 fbff7b0, zippo + 1 = 5 fbff7b8 zippo [0] = 5 fbff7b0, zippo [0] + 1 = 5 fbff7b4 * zippo = 5 fbff7b0, * zippo + 1 = 5 fbff7b4 zippo [0][0] = 2 * zippo [0] = 2 ** zippo = 2 zippo [2][1] = 3 *(*( zippo +2) + 1) = 3 zippo 1 8 zippo[0]

140 1: *(*(zippo+2)+1) zippo zippo+2 *(zippo+2) *(zippo+2)+1 *(*(zippo+2)+1) zippo[0] zippo[2] zippo[2] zippo[2] zippo[2] 2 zippo[2] 2 118

141 zippo[2][1] 119

142 pz 120

143 int (* pz) [2]; pz int 121

144 int * pax [2]; pax pax * pax int pax int int 122

145 i /* zippo2.c -- zippo info */ # include <stdio.h> int main ( void ) { int zippo [4][2] = { {2,4}, {6,8}, {1,3}, {5,7} }; int (* pz) [2]; pz = zippo ; printf (" pz = %p, pz + 1 = %p\n", pz, pz + 1); printf (" pz [0] = %p, pz [0] + 1 = %p\n", pz [0], pz [0] + 1); printf (" *pz = %p, *pz + 1 = %p\n", *pz, *pz + 1); printf (" pz [0][0] = %d\n", pz [0][0]) ; 123

146 ii printf (" *pz [0] = %d\n", *pz [0]) ; printf ("** pz = %d\n", ** pz); printf (" pz [2][1] = %d\n", pz [2][1]) ; printf (" *(*( pz +2) + 1) = %d\n", *(*( pz +2) + 1)); } return 0; 124

147 pz = 5 fbff7b0, pz + 1 = 5 fbff7b8 pz [0] = 5 fbff7b0, pz [0] + 1 = 5 fbff7b4 *pz = 5 fbff7b0, *pz + 1 = 5 fbff7b4 pz [0][0] = 2 *pz [0] = 2 ** pz = 2 pz [2][1] = 3 *(*( pz +2) + 1) = 3 125

148 pz pz[2][1] zippo [m][n] == *(*( zippo +m)+n) pz[m][n] == *(*( pz+m)+n) 126

149 int double int n = 5; double x; int * pi = &n; double * pd = &x; x = n; // pd = pi; // 127

150 int * pt; int (* pa) [3]; int ar1 [2][3]; int ar2 [3][2]; int ** p2; // pt = & ar1 [0][0]; // int pt = ar1 [0]; // int pa = ar1 ; // int[3] p2 = &pt; // int * 128

151 pt = ar1 ; // pa = ar2 ; // *p2 = ar2 [0]; // int p2 = ar2 ; // pt int ar1 3 int pa 3 int ar2 2 int p2 int ar2 2 int *p2 int ar2[0] ar2[0] ar2[0][0] ar2[0][0] int 129

152 int * p1; const int * p2; const int ** pp2 ; p1 = p2; // const const p2 = p1; // const const pp2 = &p1; // const const const const const const const 130

153 int * p1; const int ** pp2 ; const int n = 13; pp2 = &p1; // * pp2 = &n; // const p1 n *p1 = 10; // const n 131

154 132

155 133

156 i // array2d. c -- functions for 2d arrays # include <stdio.h> # define ROWS 3 # define COLS 4 void sum_rows ( int ar [][ COLS ], int rows ); void sum_cols ( int [][ COLS ], int ); int sum2d ( int (* ar)[ COLS ], int rows ); int main ( void ) { int junk [ ROWS ][ COLS ] = { {2,4,6,8}, {3,5,7,9}, {12,10,8,6} }; 134

157 ii sum_rows (junk, ROWS ); sum_cols (junk, ROWS ); printf (" Sum of all elements = %d\n", sum2d (junk, ROWS )); } return 0; void sum_rows ( int ar [][ COLS ], int rows ) { int r, c, tot ; for ( r = 0; r < rows ; r ++) { tot = 0; for ( c = 0; c < COLS ; c ++) 135

158 iii } } tot += ar[r][c]; printf (" row %d: sum = %d\n", r, tot ); void sum_cols ( int ar [][ COLS ], int rows ) { int r, c, tot ; for ( c = 0; c < COLS ; c ++) { tot = 0; for ( r = 0; r < rows ; r ++) tot += ar[r][c]; printf (" col %d: sum = %d\n", c, tot ); } 136

159 iv } int sum2d ( int ar [][ COLS ], int rows ) { int r, c; int tot = 0; } for ( r = 0; r < rows ; r ++) for ( c = 0; c < COLS ; c ++) tot += ar[r][c]; return tot ; 137

160 row 0: sum = 20 row 1: sum = 24 row 2: sum = 36 col 0: sum = 17 col 1: sum = 19 col 2: sum = 21 col 3: sum = 23 Sum of all elements =

161 ar 4 int 4 139

162 int sum2 ( int ar [][], int rows ); ar[1] ar+1 ar 140

163 int sum2 ( int ar [][], int rows ); ar[1] ar+1 ar int sum2 ( int ar [][4], int rows ); ar 4 int ar

164 int sum2 ( int ar [3][4], int rows ); 3 141

165 n int sum4d ( int ar [][4][5][6], int rows ); 142

166 n int sum4d ( int ar [][4][5][6], int rows ); int sum4d ( int (* ar) [4][5][6], int rows ); ar int 142

167

168 # define COLS 4 int sum2d ( int ar [][ COLS ], int rows ) { int r; int c; int tot = 0; for ( r = 0; r < rows ; r ++) for ( c = 0; c < COLS ; c ++) tot += ar[r][c]; return tot ; } 143

169 int ar1 [5][4]; int ar2 [100][4]; int ar3 [2][4]; tot = sum2d (ar1, 5); tot = sum2d (ar2, 100) ; tot = sum2d (ar3, 2); 144

170 6 5 COLS 5 COLS 145

171 146

172 FORTRAN FORTRAN FORTRAN C FORTRAN FORTRAN 147

173 C99 (VLA) 148

174 C99 (VLA) int m = 4; int n = 5; double array [m][n]; 148

175 int 149

176 1 int sum2d ( int rows, int cols, int ar[ rows ][ cols ]); rows cols ar int sum2d ( int ar[ rows ][ cols ], int rows, int cols ); int sum2d (int, int, int ar [*][*]) ; 150

177 2 int sum2d ( int rows, int cols, int ar[ rows ][ cols ]) { int r; int c; int tot = 0; for ( r = 0; r < rows ; r ++) for ( c = 0; c < cols ; c ++) tot += ar[r][c]; return tot ; } 151

178 i // vararr2d. c -- functions using VLAs # include <stdio.h> # define ROWS 3 # define COLS 4 int sum2d ( int rows, int cols, int ar[ rows ][ cols ]); int main ( void ) { int i, j; int rs = 3; int cs = 10; int junk [ ROWS ][ COLS ] = { {2,4,6,8}, {3,5,7,9}, {12,10,8,6} }; 152

179 ii int morejunk [ ROWS -1][ COLS +2] = { {20,30,40,50,60,70}, {5,6,7,8,9,10} }; int varr [rs ][ cs ]; // VLA for ( i = 0; i < rs; i ++) for ( j = 0; j < cs; j ++) varr [i][j] = i * j + j; printf ("3x5 array \n"); printf (" Sum of all elements = % d\ n", sum2d (ROWS, COLS, junk )); printf ("2x6 array \n"); printf (" Sum of all elements = % d\ n", 153

180 iii } sum2d (ROWS -1, COLS +2, morejunk )); printf ("3 x10 VLA \n"); printf (" Sum of all elements = % d\ n", sum2d (rs, cs, varr )); return 0; // function with a VLA parameter int sum2d ( int rows, int cols, int ar[ rows ][ cols ]) { int r, c; int tot = 0; for ( r = 0; r < rows ; r ++) for ( c = 0; c < cols ; c ++) tot += ar[r][c]; return tot ; } 154

181 3x5 array Sum of all elements = 80 2x6 array Sum of all elements = x10 VLA Sum of all elements =

182 156

183 { } int thing [10][6]; twoset (10, 6, thing );... void twoset ( int n, int m, int ar[n][m]) //ar m int { int temp [n][m]; //temp nxm int temp [0][0] = 2; // temp 2 ar [0][0] = 2; // thing[0][0] 2 } 157

184

185 int float 158

186 159

187 160

188

189 1 161

190 i // ex01.c # include <stdio.h> void swap ( double * a, double * b); void sort ( double arr [], int n); void print_ arr ( double arr [], int n); int main ( void ) { double arr [7] = {1.1, 2.2, 7.7, 4.4, 5.5, 3.3, 6.6}; print_arr (arr, 7); sort (arr, 7); print_arr (arr, 7); return 0; } void swap ( double * a, double * b) 162

191 ii { } double temp ; temp = *a; *a = *b; *b = temp ; void sort ( double arr [], int n) { int i, j, pos ; for (i = 0; i < n;i ++) { pos = i; for (j = i +1; j < n; j ++) { if(arr [j] < arr [ pos ]) pos = j; } 163

192 iii } } if ( pos!= i) swap (& arr [i], & arr [ pos ]); void print_ arr ( double arr [], int n) { int i; for ( i = 0; i < n; i ++) printf (" %6.2 f ", arr [i]); putchar ( \n ); } 164

193 2 double double source [5] = {1.1, 2.2, 3.3, 4.4, 5.5}; double target1 [5], target2 [ 5]; copy_arr ( source, target1, 5); copy_ptr ( source, target2, 5); 165

194 i // ex02.c # include <stdio.h> # define SIZE 5 void copy_ arr ( double source [], double target [], int n) ; void copy_ ptr ( double * source, double * target, int n) ; void print_ arr ( double arr [], int n); int main ( void ) { double source [5] = {1.1, 2.2, 3.3, 4.4, 5.5}; double target1 [5], target2 [5]; copy_arr ( source, target1, SIZE ); copy_ptr ( source, target2, SIZE ); print_arr ( source, SIZE ); 166

195 ii } print_arr ( target1, SIZE ); print_arr ( target2, SIZE ); return 0; void copy_ arr ( double source [], double target [], int n) { int i; for ( i = 0; i < n; i ++) target [i] = source [i]; } void copy_ ptr ( double * source, double * target, int n) { double * ptr1 = source ; double * ptr2 = target ; 167

196 iii } while ( ptr1 < source + n) * ptr2 ++ = * ptr1 ++; void print_ arr ( double arr [], int n) { int i; for ( i = 0; i < n; i ++) printf (" %6.2 f ", arr [i]); putchar ( \n ); } 168

197

198 i // ex03.c # include <stdio.h> void copy_ arr ( double source [], double target [], int n) ; void print_ arr ( double arr [], int n); int main ( void ) { double source [7] = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7}; double target [3]; copy_arr ( source +2, target, 3); print_arr ( source, 7); print_arr ( target, 3); return 0; } 170

199 ii void copy_ arr ( double source [], double target [], int n) { int i; for ( i = 0; i < n; i ++) target [i] = source [i]; } void print_ arr ( double arr [], int n) { int i; for ( i = 0; i < n; i ++) printf (" %6.2 f ", arr [i]); putchar ( \n ); } 171

200 4 double 172

201 i // ex04.c # include <stdio.h> void max_ arr1d ( double * arr, int n, double * max, int * index ); int main ( void ) { double array [4] = {2.0, -1.0,5.0,5.0}; double max ; int index ; max_arr1d ( array, 4, &max, & index ); printf (" the maximum value of array is % f " " which is located at %d- th element.\ n", max, index +1) ; return 0; } 173

202 ii void max_ arr1d ( double * arr, int n, double * max, int * index ) { int i; * max = arr [0]; * index = 0; for (i = 1; i < n; i ++) { if (* max < arr [i]) { * max = arr [i]; * index = i; } } } 174

203 5 175

204 i // ex05.c # include <stdio.h> void sum_ arr1d ( int * arr1, int * arr2, int * arr3, int n); void print_ arr1d ( int arr1d [], int n); int main ( void ) { int arr1 [4] = {2,4,5,8}; int arr2 [4] = {1,0,4,6}; int arr3 [4]; sum_arr1d (arr1, arr2, arr3, 4); print_arr1d (arr1, 4); print_arr1d (arr2, 4); print_arr1d (arr3, 4); return 0; 176

205 ii } void sum_ arr1d ( int * arr1, int * arr2, int * arr3, int n) { int i; for ( i = 0; i < n; i ++) arr3 [i] = arr1 [i] + arr2 [i]; } void print_ arr1d ( int arr1d [], int n) { int i; for ( i = 0; i < n; i ++) printf ("%3d ", arr1d [i]); putchar ( \n ); 177

206 iii } 178

207 6 u = (a 1,a 2,a 3 ) T, v = (b 1,b 2,b 3 ) T u v = a 1 b 1 +a 2 b 2 +a 3 b 3 u v = i j k a 1 a 2 a 3 b 1 b 2 b 3 = (a 2 b 3 a 3 b 2,a 3 b 1 a 1 b 3,a 1 b 2 a 2 b 1 ) T. 179

208 7 5 double

209 // ex07.h # include <stdio.h> # define COLS 5 # define ROWS 3 void input_ array2d ( double arr2d [][ COLS ], int row ); void print_ array1d ( double arr1d [], int n); void print_ array2d ( double arr2d [][ COLS ], int row ); double aver_ array1d ( double * arr1d, int n); void aver_ array2d_ row ( double arr2d [][ COLS ], int row, double average []) ; double aver_ array2d ( double arr2d [][ COLS ], int row ); double max_ array2d ( double arr2d [][ COLS ], int row ); 181

210 i // ex07.c # include " ex07.h" int main ( void ) { double arr2d [ ROWS ][ COLS ]; double average_ row [ ROWS ]; double average, max ; printf (" Please input 3 sets of five double numbers each.\n"); input_array2d ( arr2d, ROWS ); printf (" The array is :\n"); print_array2d ( arr2d, ROWS ); aver_array2d_row ( arr2d, ROWS, average_row ); printf (" average of each row :\n"); 182

211 ii print_ array1d ( average_row, ROWS ); average = aver_ array2d ( arr2d, ROWS ); printf (" average of arr2d is %5.2 f\ n", average ); max = max_array2d ( arr2d, ROWS ); printf (" max of arr2d is %5.2 f\n", max ); } return 0; void input_ array2d ( double arr2d [][ COLS ], int row ) { int r, c; for ( r = 0; r < row ; r ++) for ( c = 0; c < COLS ; c ++) 183

212 iii } scanf ("%lf", & arr2d [r][c]); void print_ array1d ( double arr1d [], int n) { int i; for ( i = 0; i < n; i ++) printf (" %8.2 f", arr1d [i]); putchar ( \n ); } void print_ array2d ( double arr2d [][ COLS ], int row ) { int r; for ( r = 0; r < row ; r ++) print_array1d ( arr2d [r], COLS ); 184

213 iv } double aver_ array1d ( double * arr1d, int n) { int i; double total = 0.0; for ( i = 0; i < n; i ++) total += arr1d [ i]; return total /( double ) n; } void aver_ array2d_ row ( double arr2d [][ COLS ], int row, double average []) { int i; for ( i = 0; i < row ; i ++) 185

214 v } average [i] = aver_array1d ( arr2d [i], COLS ); double aver_ array2d ( double arr2d [][ COLS ], int row ) { int i, j; double total = 0.0; for ( i = 0; i < row ; i ++) for ( j = 0; j < COLS ; j ++) total += arr2d [i][j]; return total /( double ) ( row * COLS ); } double max_ array2d ( double arr2d [][ COLS ], int row ) { int i, j; 186

215 vi } double max = arr2d [0][0]; for ( i = 0; i < row ; i ++) for ( j = 0; j < COLS ; j ++) if ( max < arr2d [i][j]) max = arr2d [i][j]; return max ; 187

216 8 188

217 // ex08.h # include <stdio.h> void input_ array2d ( int row, int col, double arr2d [ row ][ col ]); void print_ array1d ( double arr1d [], int n); void print_ array2d ( int row, int col, double arr2d [ row ][ col ]); double aver_ array1d ( double * arr1d, int n); void aver_ array2d_ row ( int row, int col, double arr2d [ row ][ col ], double average []) ; double aver_ array2d ( int row, int col, double arr2d [ row ][ col ]); double max_ array2d ( int row, int col, double arr2d [ row ][ col ]); 189

218 i // ex08.c # include " ex08.h" int main ( void ) { int row = 3; int col = 5; double arr2d [ row ][ col ]; double average_ row [ row ]; double average, max ; printf (" Please input 3 sets of five double numbers each.\n"); input_array2d (row, col, arr2d ); printf (" The array is :\n"); print_array2d (row, col, arr2d ); aver_array2d_row (row, col, arr2d, average_row ); 190

219 ii printf (" average of each row :\n"); print_ array1d ( average_row, row ); average = aver_ array2d ( row, col, arr2d ); printf (" average of arr2d is %5.2 f\ n", average ); max = max_array2d (row, col, arr2d ); printf (" max of arr2d is %5.2 f\n", max ); } return 0; void input_ array2d ( int row, int col, double arr2d [ row ][ col ]) { 191

220 iii } int r, c; for ( r = 0; r < row ; r ++) for ( c = 0; c < col ; c ++) scanf ("%lf", & arr2d [r][c]); void print_ array2d ( int row, int col, double arr2d [ row ][ col ]) { int r; for ( r = 0; r < row ; r ++) print_array1d ( arr2d [r], col ); } void print_ array1d ( double arr1d [], int n) { 192

221 iv } int i; for ( i = 0; i < n; i ++) printf (" %8.2 f", arr1d [i]); putchar ( \n ); double aver_ array1d ( double * arr1d, int n) { int i; double total = 0.0; for ( i = 0; i < n; i ++) total += arr1d [ i]; return total /( double ) n; } 193

222 v void aver_ array2d_ row ( int row, int col, double arr2d [ row ][ col ], double average []) { int i; for ( i = 0; i < row ; i ++) average [i] = aver_array1d ( arr2d [i], col ); } double aver_ array2d ( int row, int col, double arr2d [ row ][ col ]) { int i, j; double total = 0.0; for ( i = 0; i < row ; i ++) for ( j = 0; j < col ; j ++) total += arr2d [i][j]; 194

223 vi } return total /( double ) ( row * col ); double max_ array2d ( int row, int col, double arr2d [ row ][ col ]) { int i, j; double max = arr2d [0][0]; for ( i = 0; i < row ; i ++) for ( j = 0; j < col ; j ++) if ( max < arr2d [i][j]) max = arr2d [i][j]; return max ; } 195

224 9 196

225 // ex09.h # include <stdio.h> # define ROWS 3 # define COLS 5 void input_ array2d ( int row, int col, double * arr2d ); void print_ array1d ( double * arr1d, int n); void print_ array2d ( int row, int col, double * arr2d ); void aver_ array2d_ row ( int row, int col, double * arr2d, double * average ); double aver_ array2d ( int row, int col, double * arr2d ); double max_ array2d ( int row, int col, double * arr2d ); 197

226 i // ex09.c # include " ex09.h" int main ( void ) { double arr2d [ ROWS * COLS ]; double average_ row [ ROWS ]; double average ; double max ; printf (" Please input 3 sets of five double numbers each.\n"); input_array2d (ROWS, COLS, arr2d ); printf (" The array is :\n"); print_array2d (ROWS, COLS, arr2d ); 198

227 ii aver_array2d_row (ROWS, COLS, arr2d, average_row ); printf (" average of each row :\n"); print_ array1d ( average_row, ROWS ); average = aver_ array2d ( ROWS, COLS, arr2d ); printf (" average of arr2d is %5.2 f\ n", average ); max = max_array2d (ROWS, COLS, arr2d ); printf (" max of arr2d is %5.2 f\n", max ); } return 0; void input_ array2d ( int row, int col, double * arr2d ) { int i; 199

228 iii } for (i = 0; i < row * col ; i ++) scanf ("%lf", & arr2d [i]); void print_ array1d ( double * arr1d, int n) { int i; for ( i = 0; i < n; i ++) printf (" %8.3 f", arr1d [i]); putchar ( \n ); } void print_ array2d ( int row, int col, double * arr2d ) { int r, c; for (r = 0; r < row ; r ++) { 200

229 iv } } for ( c = 0; c < col ; c ++) printf (" %8.2 f",arr2d [r* col +c]); putchar ( \n ); void aver_ array2d_ row ( int row, int col, double * arr2d, double * average ) { int r, c; double sum ; for (r = 0; r < row ; r ++) { sum = 0.0; for ( c = 0; c < col ; c ++) sum += arr2d [r* col +c]; 201

230 v } } average [ r] = sum / ( double ) col ; double aver_ array2d ( int row, int col, double * arr2d ) { int i; double total = 0.0; for (i = 1; i < row * col ; i ++) total += arr2d [ i]; return total /( double ) ( row * col ); } double max_ array2d ( int row, int col, double * arr2d ) { int i; 202

231 vi } double max = arr2d [0]; for (i = 1; i < row * col ; i ++) if ( max < arr2d [i]) max = arr2d [i]; return max ; 203

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++ - 文件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++ 语言 - 循环

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. 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++语言 - 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

untitled

untitled 1 2 3 4 5 A 800 700 600 500 400 300 200 100 0-100 10000 9500 9000 8500 8000 7500 7000 6500 6000 2006.1-2007.5 A 1986.1-1991.12 6 7 6 27 WIND A 52.67 2007 44 8 60 55 50 45 40 35 30 25 20 15 10 2001-05 2002-02

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

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

2-2

2-2 ... 2-1... 2-2... 2-6... 2-9... 2-12... 2-13 2005 1000 2006 20083 2006 2006 2-1 2-2 2005 2006 IMF 2005 5.1% 4.3% 2006 2005 3.4% 0.2% 2006 2005 911 2005 2006 2-3 2006 2006 8.5% 1.7 1.6 1.2-0.3 8.3 4.3 3.2

More information

目 录 1 新 闻 政 策 追 踪... 4 1.1 住 建 部 : 坚 持 因 城 施 策 完 善 房 地 产 宏 观 调 控... 4 2 行 业 数 据 追 踪... 4 2.1 限 购 政 策 落 地, 新 房 成 交 回 落... 4 2.2 库 存 微 降, 一 线 去 化 表 现 稍

目 录 1 新 闻 政 策 追 踪... 4 1.1 住 建 部 : 坚 持 因 城 施 策 完 善 房 地 产 宏 观 调 控... 4 2 行 业 数 据 追 踪... 4 2.1 限 购 政 策 落 地, 新 房 成 交 回 落... 4 2.2 库 存 微 降, 一 线 去 化 表 现 稍 Sep/15 Oct/15 Nov/15 Dec/15 Jan/16 Feb/16 Mar/16 Apr/16 May/16 Jun/16 Jul/16 Aug/16 房 地 产 行 业 行 业 研 究 - 行 业 周 报 行 业 评 级 : 增 持 报 告 日 期 :216-9-14 4% 3% 2% 1% % -1% -2% 沪 深 3 SW 房 地 产 研 究 员 : 宫 模 恒 551-65161836

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

投资高企 把握3G投资主题

投资高企 把握3G投资主题 行 业 研 究 东 兴 证 券 股 份 有 限 公 司 证 券 研 究 报 告 维 持 推 荐 白 酒 行 业 食 品 饮 料 行 业 2016 年 第 21 周 周 报 投 资 摘 要 : 上 周 市 场 表 现 和 下 周 投 资 策 略 上 周 食 品 饮 料 行 业 指 数 下 跌 0.89%, 跑 输 沪 深 300 指 数 1 个 百 分 点 食 品 饮 料 细 分 行 业 1 个 上

More information

宏观与策略研究

宏观与策略研究 --2005 6 2 2005 6 A 86-0755-82943202 zhaojx@ccs.com.cn 86-0755-82960074 huangsx@ccs.com.cn 86-0755-82943566 luxw@ccs.com.cn 86-0755-82960739 jingzz@ccs.com.cn 2005-6-2 1996 2005 A 4 5 6 6 A+H 2005 A, 2005-4-6

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

专题研究.doc

专题研究.doc 2005 2 1 14 11.2 14 15 15 14 Yunyang.zhao@morningstar.com 500 MSCI 1991 2001 53 458 115 94 24 316 26 494 125 1995 26 14 1993 1993 1997 http://cn.morningstar.com 1998 1 2001 6 2000 1993 90 2002 2001 51

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

信息管理部2003

信息管理部2003 23 7 3 22 28451642 E-mail wpff@eyou.com 23 1 23 5 22 2 3 4 628 6688 866 62 52 956 46 817 912 696 792 6.5% 1: 2: -2.% -1.5% -19.% -27.6% 33.6 3.45 [2.22%] 5A:6.94 1A:9.89 2A:9.51 3A:8.44 22.14 11.23 1-1-12

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

産 産 産 産 産 爲 爲 爲 爲 185 185

産 産 産 産 産 爲 爲 爲 爲 185 185 産 産 184 産 産 産 産 産 爲 爲 爲 爲 185 185 爲 爲 爲 産 爲 爲 爲 産 186 産 爲 爲 爲 爲 爲 爲 顔 爲 産 爲 187 爲 産 爲 産 爲 産 爲 爲 188 産 爲 爲 酰 酰 酰 酰 酰 酰 産 爲 爲 産 腈 腈 腈 腈 腈 爲 腈 腈 腈 腈 爲 産 189 産 爲 爲 爲 爲 19 産 爲 爲 爲 爲 爲 爲 191 産 192 産 爲 顔 爲 腈

More information

2 图 1 新 民 科 技 2010 年 主 营 业 务 收 入 结 构 图 2 新 民 科 技 2010 年 主 营 业 务 毛 利 结 构 印 染 加 工 10.8% 其 他 4.8% 丝 织 品 17.2% 印 染 加 工 7.8% 其 他 4.4% 丝 织 品 19.1% 涤 纶 长 丝 6

2 图 1 新 民 科 技 2010 年 主 营 业 务 收 入 结 构 图 2 新 民 科 技 2010 年 主 营 业 务 毛 利 结 构 印 染 加 工 10.8% 其 他 4.8% 丝 织 品 17.2% 印 染 加 工 7.8% 其 他 4.4% 丝 织 品 19.1% 涤 纶 长 丝 6 买 入 维 持 上 市 公 司 年 报 点 评 新 民 科 技 (002127) 证 券 研 究 报 告 化 工 - 基 础 化 工 材 料 与 制 品 2011 年 3 月 15 日 2010 年 业 绩 符 合 预 期, 增 发 项 目 投 产 在 即 基 础 化 工 行 业 分 析 师 : 曹 小 飞 SAC 执 业 证 书 编 号 :S08500210070006 caoxf@htsec.com

More information

5. 6. 310-00 7. 8. 9. 2

5. 6. 310-00 7. 8. 9. 2 Mondeo 2003-03-08 2003 / MondeoGhia-X, 3S71-9H307-FA 310-069 (23-055) ( ) 1. 310-00 2. 310-00 3. 100-02 4. 1 5. 6. 310-00 7. 8. 9. 2 10 10. 11. 12. 3 13. 1. 2. 14. 310-00 15. 4 16. 17. 18. 19. 20. ( )

More information

宏碩-觀光指南coverX.ai

宏碩-觀光指南coverX.ai Time for Taiwan Taiwan-The Heart of Asia Time for Taiwan www.taiwan.net.tw Part 1 01 CONTENTS 04 Part 1 06 Part 2 GO 06 14 22 30 38 Part 3 200+ 02 Part 1 03 1 2 3 4 5 6 04 Jan Feb Mar Apr May Jun Part

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 语言 第十讲 数组 张晓平 武汉大学数学与统计学院 2019 年 2 月 25 日

C 语言 第十讲 数组 张晓平 武汉大学数学与统计学院 2019 年 2 月 25 日 C 语言 第十讲 数组 张晓平 武汉大学数学与统计学院 2019 年 2 月 25 日 1. 数组 2. 多维数组 3. 指针与数组 4. 函数 数组与指针 5. 指针操作 6. 保护数组内容 7. 指针与多维数组 2/167 C 语言 8. 变长数组 9. 关键概念 3/167 C 语言 1. 数组 数组 数组由一系列类型相同的元素构成 数组声明必须包括元素的个数与类型 float candy[365];

More information

文章题目

文章题目 2007 2006.12 1 1. 2. 3. 2 3 25.8 (1-3Q2006) 42 (1-3Q2006) 0 2000 4000 6000 8000 10000 12000 14000 16000 18000 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 1-3Q2006-10% 0% 10% 20%

More information

行 业 研 究 证 券 行 业 周 报 1 1. 行 业 一 周 走 势 上 周 (214.3.3-214.3.7, 下 同 ) 沪 深 3 下 降.49%, 券 商 行 业 下 降 2.36%, 跑 输 大 盘 上 市 券 商 中 太 平 洋 上 涨 1.2%, 涨 幅 最 大 ; 广 发 证 券

行 业 研 究 证 券 行 业 周 报 1 1. 行 业 一 周 走 势 上 周 (214.3.3-214.3.7, 下 同 ) 沪 深 3 下 降.49%, 券 商 行 业 下 降 2.36%, 跑 输 大 盘 上 市 券 商 中 太 平 洋 上 涨 1.2%, 涨 幅 最 大 ; 广 发 证 券 市 场 表 现 增 持 维 持 4% 券 商 沪 深 3 3% 行 业 研 究 国 金 证 券 手 机 版 佣 金 宝 上 线 证 券 行 业 周 报 (214.3.3-214.3.7) 证 券 研 究 报 告 证 券 信 托 行 业 214 年 3 月 1 日 2% 1% % -1% -2% -3% 11-8 11-1 11-12 12-2 12-4 12-6 12-8 12-1 12-12 13-2

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

(Microsoft PowerPoint - 2011 [L So] \272C\251\312\252\375\266\353\251\312\252\315\257f [\254\333\256e\274\322\246\241])

(Microsoft PowerPoint - 2011 [L So] \272C\251\312\252\375\266\353\251\312\252\315\257f [\254\333\256e\274\322\246\241]) 慢 性 阻 塞 性 肺 病 (COPD) 冬 令 殺 手 冬 令 殺 手 蘇 潔 瑩 醫 生 東 區 尤 德 夫 人 那 打 素 醫 院 內 科 部 呼 吸 科 副 顧 問 醫 生 慢 性 阻 塞 性 肺 病 (COPD) 慢 性 阻 塞 性 肺 病 簡 稱 慢 阻 肺 病, 主 要 包 括 慢 性 支 氣 管 炎 和 肺 氣 腫 兩 種 情 況 患 者 的 呼 吸 道 受 阻, 以 致 氣 流 不

More information

香港中文大學校友會聯會陳震夏中學

香港中文大學校友會聯會陳震夏中學 CUHK FAA Chan Chun Ha Secondary School School Report 2003-2004 1 1. 2. (i) (ii) 寛 (iii) 2 (iv) (v) 3. (i) (ii) 00/01 5 1 0 0 0 0 (83%) (17%) 01/02 5 1 0 0 0 0 (83%) (17%) 02/03 5 1 1 1 (62.5%) (12.5%)

More information

PowerPoint Presentation

PowerPoint Presentation 推 票 蕴 含 的 投 资 机 会 卖 方 分 析 师 重 点 报 告 效 应 研 究 证 券 分 析 师 刘 均 伟 A0230511040041 夏 祥 全 A0230513070002 2014.4 主 要 内 容 1. 卖 方 分 析 师 推 票 的 时 滞 性 蕴 含 了 事 件 投 资 机 会 2. 卖 方 分 析 师 重 点 报 告 首 次 效 应 3. 卖 方 分 析 师 重 点 报

More information

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

C/C++ - 字符串与字符串函数 C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed

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

1. 发 行 情 况 格 力 地 产 于 2014 年 12 月 25 日 发 行 9.8 亿 元 可 转 债 其 中, 原 股 东 优 先 配 售 2.1225 亿 元 (21.225 万 手 ), 占 本 次 发 行 总 量 的 21.66% 网 上 向 一 般 社 会 公 众 投 资 者 发

1. 发 行 情 况 格 力 地 产 于 2014 年 12 月 25 日 发 行 9.8 亿 元 可 转 债 其 中, 原 股 东 优 先 配 售 2.1225 亿 元 (21.225 万 手 ), 占 本 次 发 行 总 量 的 21.66% 网 上 向 一 般 社 会 公 众 投 资 者 发 衍 生 品 市 场 衍 生 品 市 场 转 债 研 究 转 债 研 究 证 券 研 究 报 告 证 券 研 究 报 告 转 债 定 价 报 告 2015 年 1 月 11 日 格 力 转 债 (110030) 上 市 定 价 分 析 公 司 资 料 : 转 债 条 款 : 发 行 日 到 期 日 期 限 转 股 期 限 起 始 转 股 日 发 行 规 模 净 利 润 2014-12-25 2019-12-24

More information

二零零五年度报告框架稿

二零零五年度报告框架稿 CHINA PETROLEUM & CHEMICAL CORPORATION ( 2004 12 31 ) 1 1 2 2.1 (1) 53,535 32,275 35,996 115,222 1,102 62,953 1,088 10,506 70,139 1,160 ( )/ (2) (322) 6,543 4,304 919 275 (665) (1,833) 3,721 2 (2) 2004

More information

Microsoft Word - 第四章 資料分析

Microsoft Word - 第四章  資料分析 第 四 章 資 料 分 析 本 研 究 針 對 等 三 報, 在 馬 英 九 擔 任 台 北 市 長 台 北 市 長 兼 國 民 黨 主 席, 以 及 國 民 黨 主 席 之 從 政 階 段 中 ( 共 計 八 年 又 二 個 月 的 時 間, 共 855 則 新 聞, 其 中 179 則, 348 則, 328 則 ), 報 導 馬 英 九 新 聞 時 使 用 名 人 政 治 新 聞 框 架 之

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

基金池周报

基金池周报 基 金 研 究 / 周 报 关 注 新 华 优 选 成 长 等 零 存 整 取 型 基 金 民 生 证 券 基 金 池 动 态 周 报 民 生 精 品 --- 基 金 研 究 周 报 2011 年 05 月 03 日 建 议 资 金 充 裕 渴 望 在 中 长 期 获 取 超 额 收 益 的 投 资 者 关 注 华 夏 大 盘 精 选 (000011.OF ) 大 摩 资 源 优 选 混 合 ( 163302.OF

More information

模 型 更 新 时 间 :2010.03.25 股 票 研 究 原 材 料 建 材 评 级 : 上 次 评 级 : 目 标 价 格 : 24.00 上 次 预 测 : 22.00 当 前 价 格 : 17.15 公 司 网 址 公 司 简 介 公 司 是 一 个 以

模 型 更 新 时 间 :2010.03.25 股 票 研 究 原 材 料 建 材 评 级 : 上 次 评 级 : 目 标 价 格 : 24.00 上 次 预 测 : 22.00 当 前 价 格 : 17.15 公 司 网 址  公 司 简 介 公 司 是 一 个 以 股 票 研 究 公 司 更 新 报 告 插 上 区 域 振 兴 的 翅 膀 :5 大 区 域 规 划 本 身 稀 缺 韩 其 成 021-38676162 hanqicheng@gtjas.com S0880208070351 本 报 告 导 读 : 冀 东 水 泥 经 营 区 域 中 有 环 渤 海 沈 阳 内 蒙 古 陕 西 吉 林 5 个 区 域 涉 及 国 家 振 兴 规 划, 这 本 身

More information

Microsoft Word - 01_FR_V3_Cover3_C.doc

Microsoft Word - 01_FR_V3_Cover3_C.doc 5.2 地 下 水 5.2.1 关 于 地 下 水 赋 存 状 况 的 讨 论 (1) 太 子 河 流 域 的 地 下 水 开 发 情 况 在 太 子 河 下 游 部, 由 第 四 纪 堆 积 物 广 泛 分 布 的 平 原 地 区 为 主 要 含 水 层 分 布 地 域, 由 于 工 业 用 水 农 业 用 水 和 生 活 用 水 的 需 求, 地 下 水 被 大 量 开 采 利 用 太 子 河

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

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

<4D6963726F736F667420576F7264202D2047CEF7B7C920B9ABCBBED1D0BEBFB1A8B8E62E646F63>

<4D6963726F736F667420576F7264202D2047CEF7B7C920B9ABCBBED1D0BEBFB1A8B8E62E646F63> 公 司 研 究 G 西 飞 (000768): 大 股 东 的 飞 机 总 装 资 产 值 得 期 待 增 持 军 工 机 械 行 业 当 前 股 价 :9.74 元 报 告 日 期 :2006 年 7 月 25 日 主 要 财 务 指 标 ( 单 位 : 百 万 元 ) 2005A 2006E 2007E 2008E 主 营 业 务 收 入 1,180 1,686 2,163 2,798 (+/-)

More information

出 版 : 會 員 通 訊 網 址 香 港 大 眾 攝 影 會 有 限 公 司 通 訊 地 址 : 香 港 郵 政 總 局 郵 箱 10657 號 非 賣 品 只 供 會 閱 覽 HONG KONG CAMERA CLUB, LT

出 版 : 會 員 通 訊 網 址  香 港 大 眾 攝 影 會 有 限 公 司 通 訊 地 址 : 香 港 郵 政 總 局 郵 箱 10657 號 非 賣 品 只 供 會 閱 覽 HONG KONG CAMERA CLUB, LT 香 港 大 眾 攝 影 會 有 限 公 司 HONG KONG CAMERA CLUB, LTD. 永 遠 榮 譽 會 長 胡 世 光 先 生 陳 海 先 生 任 霖 先 生 永 遠 名 譽 顧 問 簡 慶 福 先 生 連 登 良 先 生 黃 貴 權 醫 生 BBS 2012-13 年 度 本 年 度 榮 譽 會 長 譚 炳 森 先 生 王 健 材 先 生 陳 炳 洪 先 生 廖 群 先 生 翁 蓮

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

Microsoft Word - 081596年報.doc

Microsoft Word - 081596年報.doc 國 立 聯 合 大 學 96學年度年報 2007~2008 Annual Report 中華民國九十六年八月一 日至 九十 七年 七月 三十 一日 說 明 與 誌 謝 一 本 年 度 報 告 (annual report) 旨 在 就 本 校 96 學 年 度 校 務 發 展 的 九 大 功 能 層 面 做 一 簡 報 二 年 報 資 訊 除 供 了 解 校 務 發 展 情 形 之 外, 可 供 檢

More information

untitled

untitled 28 12 17 28.68 2.6 3883.39 3 1994.45 1975.1 725.32 2736.3 1998 8998 6998 4998 2998 71217 8317 8611 891 81128 3 1 : 28.12.2 2 VS :4 28.1.5 3 28.7.14 9 1999-28 1 1 29 1 2 3 4 5 29 2 29 2 29 (8621)6138276

More information

<4D6963726F736F667420576F7264202D20CAFDBEDDCFC2D6DCB9ABB2BC20CAD0B3A1B3E5B8DFC8D4D3D0D5F0B5B42E646F63>

<4D6963726F736F667420576F7264202D20CAFDBEDDCFC2D6DCB9ABB2BC20CAD0B3A1B3E5B8DFC8D4D3D0D5F0B5B42E646F63> 2010 年 8 月 8 日 市 场 策 略 第 一 创 业 研 究 所 分 析 师 : 于 海 涛 S1080200010003 电 话 :0755-25832792 邮 件 :yuhaitao@fcsc.cn 沪 深 300 交 易 数 据 年 初 涨 跌 幅 : -18.96% 日 最 大 涨 幅 : 3.78%(5/24) 日 最 大 跌 幅 : -5.36%(4/19) A 股 基 本 数

More information

---- TEL FAX II %

---- TEL FAX II % 2003 2 2003 8 WWW.CEI.GOV.CN TEL010 68558355 FAX010 68558370 I ---- TEL010 68558355 FAX010 68558370 II 2003... 1...1...2...2 2003... 3...3...4...6 1....6 2....7...8...10 1....10 2. 40%...11 2003... 12...12...13...13

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

<4D6963726F736F667420576F7264202D20D6D0D2A9B2C4D0D0D2B5C9EEB6C8D1D0BEBFB1A8B8E62DD4A4BCC6BCD2D6D6D6D0D2A9B2C4BCDBB8F1BDABCFC2BDB5A3ACD3D0CDFBB3C9CEAA3133C4EACDB6D7CAD6F7CCE2>

<4D6963726F736F667420576F7264202D20D6D0D2A9B2C4D0D0D2B5C9EEB6C8D1D0BEBFB1A8B8E62DD4A4BCC6BCD2D6D6D6D0D2A9B2C4BCDBB8F1BDABCFC2BDB5A3ACD3D0CDFBB3C9CEAA3133C4EACDB6D7CAD6F7CCE2> 证 券 研 究 报 告 行 业 深 度 报 告 日 用 消 费 医 药 推 荐 ( 维 持 ) 预 计 家 种 中 药 材 价 格 将 下 降, 有 望 成 为 3 年 投 资 主 题 22 年 8 月 4 日 中 药 材 行 业 深 度 研 究 报 告 上 证 指 数 236 行 业 规 模 占 比 % 股 票 家 数 ( 只 ) 52 7.2 总 市 值 ( 亿 元 ) 278 4.9 流 通

More information

<4D6963726F736F667420576F7264202D2031383939D0CBB4EFB9FABCCA2D4358582D3031313132303130B8FCD0C2B1A8B8E6B7B1CCE52E646F63>

<4D6963726F736F667420576F7264202D2031383939D0CBB4EFB9FABCCA2D4358582D3031313132303130B8FCD0C2B1A8B8E6B7B1CCE52E646F63> 興 達 國 際 (1899) 買 入 更 新 報 告 1 日 矽 片 切 割 線 將 貢 獻 新 利 潤, 調 升 目 標 價 至 1.1 港 元 21 年 1-9 月 中 國 子 午 輪 胎 產 量 同 比 增 長 25.3% 目 前 中 國 汽 車 存 量 市 場 為 85 萬 輛 左 右, 工 信 部 預 計 到 22 年 將 超 過 2 億 輛, 中 國 汽 車 存 量 市 場 將 帶 來

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

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

Microsoft Word - Daily150330-A.doc

Microsoft Word - Daily150330-A.doc 每 日 焦 点 中 银 国 际 证 券 研 究 报 告 指 数 表 现 收 盘 一 日 今 年 % 以 来 % 恒 生 指 数 24,486 (0.0) 3.7 恒 生 中 国 企 业 指 数 11,898 (0.2) (0.7) 恒 生 香 港 中 资 企 业 指 数 4,547 0.7 4.5 摩 根 士 丹 利 资 本 国 际 香 港 指 数 13,085 0.3 4.7 摩 根 士 丹 利

More information

<4D F736F F F696E74202D20BDD3CCECC1ABD2B6B1CCA3ACD3B3C8D5BAC9BBA8BAEC2E707074>

<4D F736F F F696E74202D20BDD3CCECC1ABD2B6B1CCA3ACD3B3C8D5BAC9BBA8BAEC2E707074> 接 天 莲 叶 碧, 映 日 荷 花 红 A 股 投 资 策 略 更 新 兴 业 证 券 研 发 中 心 策 略 研 究 员 张 忆 东 28 年 7 月 要 点 : 从 谨 慎 到 谨 慎 乐 观 中 空 短 多 博 弈 政 策 和 5 月 份 写 的 中 期 策 略 时 间 的 玫 瑰 相 比, 我 们 的 策 略 基 调 未 变 : 熊 市 难 改, 结 构 性 机 会 增 多 经 济 下 行

More information

(i) (ii) (iii) (iv) 380,000 [ ] , , % % % 5.5% 6.5%

(i) (ii) (iii) (iv) 380,000 [ ] , , % % % 5.5% 6.5% [] [] [] [] [] [] [] 1961 40 2,000 1990 [] (i) (ii) 38 (i) (ii) (iii) (iv) 380,000 [ ] 201017,763 201422,457 20152020 7.1% 2010 2020 2010 2015 6.2% 20152020 2010 2015 20152020 7.1% 5.5% 6.5% 2010 2011

More information

... 1... 3... 8... 10... 16... 28... 38... 180 China Petroleum & Chemical Corporation Sinopec Corp. 100029 86-10-64990060 86-10-64990022 http://www.sinopec.com.cn ir@sinopec.com.cn media@sinopec.com.cn

More information

欢迎光临兴业证券 !

欢迎光临兴业证券 ! 2009 08 09 2 3 4 08 09 5 14402.56 40.95% 622.92 43.57% 4753.39 31.90% 302.05 45.01% 4020.24 26.03% 361.51 27.32% 23176.19 36.24% 1286.48 38.91% : 6 7 15.00% 20.00% 25.00% 30.00% 35.00% 40.00% 45.00% 50.00%

More information

Title

Title /本研究报告通过网站仅提供自然人 monitor-t12(monitor-t12) 使用 1 zhaoxiange@sw18.com wangshijie@sw18.com (8621)63295888 259 gaoyuan@sw18.com 99 862163295888 http://www.sw18.com 28 12 8 4 4 9 1 12 3 1 本研究报告通过网站仅提供自然人 monitor-t12(monitor-t12)

More information

Microsoft Word - Software sector_111107 _CN_.doc

Microsoft Word - Software sector_111107 _CN_.doc 软 件 服 务 2011 年 11 月 7 日 证 券 研 究 报 告 板 块 最 新 信 息 软 件 业 的 政 策 春 天 A 增 持 胡 文 洲, CFA* (8621) 2032 8520 eric.hu@bocigroup.com 证 券 投 资 咨 询 业 务 证 书 编 号 :S1300200010035 * 周 中 李 鹏 为 本 文 重 大 贡 献 者 中 银 国 际 证 券 有

More information

(Microsoft PowerPoint - 03 \253\355\251w\245\315\262\ \301\277\270q.ppt)

(Microsoft PowerPoint - 03 \253\355\251w\245\315\262\ \301\277\270q.ppt) 恆 定 生 產 台 灣 動 物 科 技 研 究 所 動 物 醫 學 組 劉 學 陶 大 綱 前 言 恆 定 生 產 更 新 計 畫 配 種 技 術 分 娩 助 產 離 乳 餵 飼 結 論 4 週 離 乳 案 例 介 紹 20 床 62 床 每 2 週 一 批 次 分 娩 約 20 胎 / 批 離 乳 180 頭 / 批 年 產 肉 豬 4,212 頭 10 週 齡 保 (200 仔 ) 保 (200

More information

二零零六年一月二十三日會議

二零零六年一月二十三日會議 附 件 B 有 关 政 策 局 推 行 或 正 在 策 划 的 纾 缓 及 预 防 贫 穷 措 施 下 文 载 述 有 关 政 策 局 / 部 门 为 加 强 纾 缓 及 预 防 贫 穷 的 工 作, 以 及 为 配 合 委 员 会 工 作, 在 过 去 十 一 个 月 公 布 及 正 在 策 划 的 新 政 策 和 措 施 生 福 利 及 食 物 局 (i) 综 合 儿 童 发 展 服 务 2.

More information

厨房小知识(四)

厨房小知识(四) I...1...2...3...4...4...5...6...6...7...9...10... 11...12...12...13...14...15...16...17...18...18...19...22...22 II...23...24...25...26...27...27...28...29...29...30...31...31?...32...32...33?...33...34...34...35...36...36...37...37...38...38...40

More information

妇女更年期保健.doc

妇女更年期保健.doc ...1...2...3...5...6...7 40...8... 11...13...14...16...17...19...20...21...26...29...30...32 I ...34...35...37...41...46...50...51...52...53...54...55...58...64...65 X...67...68...70...70...74...76...78...79

More information

小儿传染病防治(上)

小儿传染病防治(上) ...1...2...3...5...7...7...9... 11...13...14...15...16...32...34...34...36...37...39 I ...39...40...41...42...43...48...50...54...56...57...59...59...60...61...63...65...66...66...68...68...70...70 II

More information

<4D6963726F736F667420576F7264202D2031303430333234B875B9B5A448ADFBBADEB27AA740B77EA4E2A5555FA95EAED6A641ADD75F2E646F63>

<4D6963726F736F667420576F7264202D2031303430333234B875B9B5A448ADFBBADEB27AA740B77EA4E2A5555FA95EAED6A641ADD75F2E646F63> 聘 僱 人 員 管 理 作 業 參 考 手 冊 行 政 院 人 事 行 政 總 處 編 印 中 華 民 國 104 年 3 月 序 人 事 是 政 通 人 和 的 關 鍵 是 百 事 俱 興 的 基 礎, 也 是 追 求 卓 越 的 張 本 唯 有 人 事 健 全, 業 務 才 能 順 利 推 動, 政 府 施 政 自 然 績 效 斐 然 本 總 處 做 為 行 政 院 人 事 政 策 幕 僚 機

More information

女性青春期保健(下).doc

女性青春期保健(下).doc ...1...4...10... 11...13...14...15...17...18...19...20...21...22...23...24...26...27...30...31 I ...32...33...36...37...38...40...41...43...44...45...46...47...50...51...51...53...54...55...56...58...59

More information

避孕知识(下).doc

避孕知识(下).doc ...1...3...6...13...13...14...15...16...17...17...18...19...19...20...20...23...24...24...25 I ...25...26...26...27...28...28...29...30...30...31...32...34...35 11...36...37...38...40...42...43...44...44...46

More information

孕妇饮食调养(下).doc

孕妇饮食调养(下).doc ...1...2...5...9 7...9...14...15...16...18...22...23...24...25...27...29...31...32...34 I ...35...36...37...39...40...40...42...44...46...48...51...52...53...53...54...55...56...56...58...61...64 II ...65...66...67...68...69...70...71...72...73...74...75...76...77...80...83...85...87...88

More information

禽畜饲料配制技术(一).doc

禽畜饲料配制技术(一).doc ( ) ...1...1...4...5...6...7...8...9...10... 11...13...14...17...18...21...23...24...26 I ...28 70...30...33...35...36...37...39...40...41...49...50...52...53...54...56...58...59...60...67...68...70...71

More information

中老年保健必读(十一).doc

中老年保健必读(十一).doc ...1...2...4...6...8...9...10...12...14...15...17...18...20...22...23...25...27...29 I ...30...32...35...38...40...42...43...45...46...48...52...55...56...59...62...63...66...67...69...71...74 II ...76...78...79...81...84...86...87...88...89...90...91...93...96...99...

More information

i

i i ii iii iv v vi 1 2 3 4 5 (b) (a) (b) (c) = 100% (a) 6 7 (b) (a) (b) (c) = 100% (a) 2 456 329 13% 12 120 7.1 0.06% 8 9 10 11 12 13 14 15 16 17 18 19 20 (a) (b) (c) 21 22 23 24 25 26 27 28 29 30 31 =

More information

怎样使孩子更加聪明健康(七).doc

怎样使孩子更加聪明健康(七).doc ...1...2...2...4...5 7 8...6...7...9 1 3... 11...12...14...15...16...17...18...19...20...21...22 I II...23...24...26 1 3...27...29...31...31...33...33...35...35...37...39...41...43...44...45 3 4...47...48...49...51...52

More information

i

i i ii iii iv v vi 1 g j 2 3 4 ==== ==== ==== 5 ==== ======= 6 ==== ======= 7 ==== ==== ==== 8 [(d) = (a) (b)] [(e) = (c) (b)] 9 ===== ===== ===== ===== ===== ===== 10 11 12 13 14 15 16 17 ===== [ ] 18 19

More information

马太亨利完整圣经注释—雅歌

马太亨利完整圣经注释—雅歌 第 1 页 目 录 雅 歌 简 介... 2 雅 歌 第 一 章... 2 雅 歌 第 二 章... 10 雅 歌 第 三 章... 16 雅 歌 第 四 章... 20 雅 歌 第 五 章... 25 雅 歌 第 六 章... 32 雅 歌 第 七 章... 36 雅 歌 第 八 章... 39 第 2 页 雅 歌 简 介 我 们 坚 信 圣 经 都 是 神 所 默 示 的 ( 提 摩 太 后 书

More information

Sector — Subsector

Sector — Subsector Jul-14 Aug-14 Sep-14 Oct-14 Oct-14 Nov-14 Dec-14 Dec-14 Jan-15 Jan-15 Feb-15 Mar-15 Mar-15 Apr-15 Apr-15 May-15 May-15 Jun-15 Jul-15 证 券 研 究 报 告 调 整 目 标 价 格 买 入 961.CH 价 格 : 人 民 币 18.95 58% 目 标 价 格 : 人

More information

(Microsoft Word - 1012-2\256\325\260\310\267|\304\263\254\366\277\375.doc)

(Microsoft Word - 1012-2\256\325\260\310\267|\304\263\254\366\277\375.doc) 國 立 屏 北 高 級 中 學 101 學 年 度 第 2 學 期 第 2 次 校 務 會 議 紀 錄 壹 會 議 名 稱 :101 學 年 度 第 2 學 期 第 2 次 校 務 會 議 貳 時 間 :102 年 6 月 28 日 ( 星 期 五 ) 下 午 13 時 10 分 參 地 點 : 本 校 圖 書 館 四 樓 視 聽 會 議 室 肆 出 列 席 人 員 : 詳 如 簽 到 簿 伍 主

More information

Microsoft Word - 3635966_11153427.doc

Microsoft Word - 3635966_11153427.doc 马 钢 股 份 (600808) 马 钢 股 份 (0323.HK) 公 司 点 评 研 究 报 告 维 持 中 性 评 级 2012-3-29 分 析 师 : 刘 元 瑞 (8621) 68751760 liuyr@cjsc.com.cn 执 业 证 书 编 号 : S0490510120022 联 系 人 : 王 鹤 涛 (8621) 68751760 wanght1@cjsc.com.cn 财

More information

1. 食 品 饮 料 本 周 观 点... 4 2. 食 品 饮 料 各 板 块 市 场 表 现... 7 3. 下 周 重 大 事 项... 12 4. 食 品 饮 料 公 司 盈 利 预 测 表... 13 请 务 必 仔 细 阅 读 正 文 之 后 的 各 项 信 息 披 露 与 声 明 第

1. 食 品 饮 料 本 周 观 点... 4 2. 食 品 饮 料 各 板 块 市 场 表 现... 7 3. 下 周 重 大 事 项... 12 4. 食 品 饮 料 公 司 盈 利 预 测 表... 13 请 务 必 仔 细 阅 读 正 文 之 后 的 各 项 信 息 披 露 与 声 明 第 / 行 业 及 产 业 食 品 饮 料 行 业 研 究 行 业 点 评 2016 年 07 月 11 日 茅 台 类 商 品 反 身 性 不 断 强 化 直 接 利 好 五 粮 液 看 好 食 品 饮 料 行 业 周 报 160704-160708 证 券 研 究 报 告 相 关 研 究 " 食 品 饮 料 行 业 周 报 160425-160429: 季 报 超 预 期 白 酒 将 是 全 年 投

More information

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,

More information

untitled

untitled 559 509 459 409 359 309 259 2008 10 30 14.31 20.60 295.61 300 1658.22 1719.81 5798.67 2012.50 080604 080826 300 1 2008.10.5 2, 2008.7.18 3 2008.7.14 (8621)61038287 zhangzj@gjzq.com.cn (8621)61038289 dongyaguang@gjzq.com.cn

More information

untitled

untitled 26 5 5. % 1 4.75 4.5 4.25 4. 3.75 3.5 Apr-5 Jun-5 Aug-5 Oct-5 (%) Dec-5 Feb-6 Apr-6 : DataStream, April 25 to April 26 415% 22 6 ( ) 1 1 ( ) 1 ( ) 1 4261 4.8%2541.7% 4 419.6 4ISM 355.2 4 57.3 3 6.1%13

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

目 录 1. 表 现 回 顾 与 行 业 观 点...3 1.1. 行 业 表 现 :6 月 略 微 跑 输 大 市...3 1.2. 行 业 观 点 :2H 相 对 收 益 乐 观...4 2. 行 业 要 闻 与 公 司 动 态...5 2.1. 行 业 要 闻...5 2.2. 公 司 动 态

目 录 1. 表 现 回 顾 与 行 业 观 点...3 1.1. 行 业 表 现 :6 月 略 微 跑 输 大 市...3 1.2. 行 业 观 点 :2H 相 对 收 益 乐 观...4 2. 行 业 要 闻 与 公 司 动 态...5 2.1. 行 业 要 闻...5 2.2. 公 司 动 态 股 票 研 究 行 业 月 报 证 券 研 究 报 告 [Table_MainInfo] [Table_Title] 2012.07.02 2H 相 对 收 益 乐 观 国 泰 君 安 农 业 月 报 2012 年 7 月 秦 军 ( 分 析 师 ) 翟 羽 佳 ( 研 究 助 理 ) 傅 佳 琦 ( 分 析 师 ) 021-38676768 021-38674941 021-38674635 qinjun@gtjas.com

More information

27-11-22 8627 65799773 liuyr@cjsc.com.cn 28 27 65 121.22% 91.3% 619 898 27 6282 78 12 7681 28 6681 5681 4681 3681 2681 1681 6-11 6-12 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 7-1 28 28 WIND 28 28 15% 5.1~5.2

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

Title

Title /本研究报告仅通过邮件提供给中国对外经济贸易信托投资有限公司中国对外经济贸易信托投资有限公司 (fotic@yahoo.cn) 使用 1 zhaoxiange@sw18.com wangshijie@sw18.com (8621)63295888 259 gaoyuan@sw18.com 99 862163295888 http://www.sw18.com 本研究报告仅通过邮件提供给中国对外经济贸易信托投资有限公司中国对外经济贸易信托投资有限公司

More information

<4D6963726F736F667420576F7264202D20CDA8D0C5C9E8B1B8D6C6D4ECD2B5A3A83230303630393031A3A9A3BACEF6D6F7C1F7C9E8B1B82E646F63>

<4D6963726F736F667420576F7264202D20CDA8D0C5C9E8B1B8D6C6D4ECD2B5A3A83230303630393031A3A9A3BACEF6D6F7C1F7C9E8B1B82E646F63> 行 业 研 究 析 主 流 设 备 商 2 季 财 报, 评 中 兴 通 讯 市 场 表 现 26/9/1 通 信 设 备 制 造 业 全 球 9 家 电 信 设 备 制 造 巨 头 占 据 了 约 9 的 市 场 份 额, 中 兴 通 讯 海 外 销 售 占 比 已 超 过 了 37%, 而 且 还 有 不 断 增 长 的 可 能 我 们 选 取 已 公 布 2 季 度 财 报 并 且 竞 争 领

More information

Microsoft Word - Daily160429-A _CN_.doc

Microsoft Word - Daily160429-A _CN_.doc 每 日 焦 点 中 银 国 际 证 券 研 究 报 告 指 数 表 现 收 盘 一 日 今 年 % 以 来 % 恒 生 指 数 21,388 0.1 (2.4) 恒 生 中 国 企 业 指 数 9,061 0.3 (6.2) 恒 生 香 港 中 资 企 业 指 数 3,803 (0.2) (6.1) 摩 根 士 丹 利 资 本 国 际 香 港 指 数 12,193 (0.0) 0.9 摩 根 士 丹

More information

目 录 一 本 周 主 要 观 点... 3 二 造 纸... 5 1. 上 周 市 场 及 组 合 情 况... 5 2. 行 业 基 本 面 变 化... 6 1) 产 品 价 格 : 成 品 纸 市 场 整 体 稳 定... 6 2) 本 周 国 际 针 叶 浆 价 上 涨 阔 叶 浆 价 下

目 录 一 本 周 主 要 观 点... 3 二 造 纸... 5 1. 上 周 市 场 及 组 合 情 况... 5 2. 行 业 基 本 面 变 化... 6 1) 产 品 价 格 : 成 品 纸 市 场 整 体 稳 定... 6 2) 本 周 国 际 针 叶 浆 价 上 涨 阔 叶 浆 价 下 行 业 及 产 业 轻 工 制 造 2016 年 09 月 05 日 造 纸 轻 工 周 报 股 票 报 告 网 整 理 http://www.nxny.com 行 业 研 究 / 行 业 点 评 证 券 研 究 报 告 看 好 相 关 研 究 造 纸 轻 工 周 报 各 期 轻 工 造 纸 行 业 2016 年 中 期 策 略 报 告 聚 焦 确 定 成 长, 关 注 模 式 转 型 2016/7/25

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 - 30017417_10012249.doc

Microsoft Word - 30017417_10012249.doc 股 票 研 究 公 司 调 研 报 告 冀 东 水 泥 (000401) 度 过 寒 冬 即 是 春 : 短 期 阶 段 行 情 长 期 左 侧 买 点 韩 其 成 021-38676162 hanqicheng@gtjas.co 本 报 告 导 读 : 2010 年 公 司 产 能 将 由 目 前 6000 万 吨 增 加 至 1 亿 吨 左 右, 为 行 业 内 增 速 最 快 公 司 2010-11

More information

本 研 究 报 告 仅 通 过 邮 件 提 供 给 泰 信 基 金 管 理 有 限 公 司 泰 信 基 金 管 理 有 限 公 司 (research@ftfund.com) 使 用 2 投 资 案 件 投 资 评 级 与 估 值 6 个 月 目 标 价 26 元, 首 次 评 级 给 与 买 入

本 研 究 报 告 仅 通 过 邮 件 提 供 给 泰 信 基 金 管 理 有 限 公 司 泰 信 基 金 管 理 有 限 公 司 (research@ftfund.com) 使 用 2 投 资 案 件 投 资 评 级 与 估 值 6 个 月 目 标 价 26 元, 首 次 评 级 给 与 买 入 本 研 究 报 告 仅 通 过 邮 件 提 供 给 泰 信 基 金 管 理 有 限 公 司 泰 信 基 金 管 理 有 限 公 司 (research@ftfund.com) 使 用 1 上 市 公 司 公 司 研 究 / 深 度 研 究 证 券 研 究 报 告 中 小 股 票 2011 年 05 月 25 日 张 化 机 (002564) 订 单 饱 满, 下 半 年 募 投 产 能 释 放 带

More information

东吴证券研究所

东吴证券研究所 证 券 研 究 报 告 公 司 研 究 医 药 行 业 新 华 医 疗 (600587) 多 领 域 强 势 布 局, 将 厚 积 薄 发 增 持 ( 首 次 ) 投 资 要 点 制 药 设 备 体 系 建 成 + 市 场 回 暖 : 制 药 设 备 市 场 波 动 是 公 司 2015 年 利 润 下 降 的 主 要 原 因 公 司 制 药 设 备 板 块 已 形 成 中 药 和 生 物 药 设

More information

Sea of Japan Hokkaido Okhotsk Sea Study area Number of fish released (thousand) 120,000 100,000 80,000 60,000 40,000 20,000 0 1991 1993 1995 1997 1999 2001 Year Fish released in rivers Fish released from

More information

报告的主线及研究的侧重点

报告的主线及研究的侧重点 26-11-2 862163299571 86213313733 zhouyong2@cjsc.com.cn zhoujt@cjsc.com.cn 27 7 7 25.1 6 25.12 26.5 26.11 2 2 6 7 27 7 7 ...1 2...1...2 6...3 7...4...5...7...8...11...11...13...15...18...18...18...19 7...2

More information

SB All Chinese_ITMU

SB All Chinese_ITMU SB240 ( 問 題 編 號 :2380) (000) 運 作 開 支 據 綱 領 指, 消 防 處 由 2015 年 3 月 31 日 預 算 設 有 的 10 245 個 非 首 長 級 職 位, 增 至 2016 年 3 月 31 日 的 10 390 個, 增 幅 為 145 個, 相 關 新 聘 請 的 職 位 類 別 及 工 作 性 質 為 何? 同 時, 現 有 消 防 處 設 有

More information

14 16 17 18 19 20 20 21 21 22 22 22 23 25 26 26 27 28 29 30 31 32 32 33 33 34 34

14 16 17 18 19 20 20 21 21 22 22 22 23 25 26 26 27 28 29 30 31 32 32 33 33 34 34 1 1 1 2 2 3 3 4 4 5 6 7 8 9 10 11 12 12 13 14 16 17 18 19 20 20 21 21 22 22 22 23 25 26 26 27 28 29 30 31 32 32 33 33 34 34 34 35 35 36 37 37 38 38 39 39 40 40 41 41 42 43 43 70% 75% 43 44 45 46 47 47

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