2010-08-12 11:55:09.102 test[2550:207] test_int_int called!
2010-08-12 11:55:09.106 test[2550:207] test_int_float called!
2010-08-12 11:55:09.108 test[2550:207] template fun called!
结构与算符重载的使用:
5
自定义类CPoint的使用...
(10,10)
(20,20)
(50,50)
2010-08-12 11:55:09.113 test[2550:207] destruction fun called
2010-08-12 11:55:09.115 test[2550:207] destruction fun called
2010-08-12 11:55:09.117 test[2550:207] destruction fun called
string 的使用...
zhangyuntao in 2010.8.12 hehe -----张运涛
使用c_str...
zhangyuntao in 2010.8.12 hehe -----张运涛
从string转成NSString:2010-08-12 11:55:09.119 test[2550:207] zhangyuntao in 2010.8.12 hehe -----张运涛
从NSString转成string: zhangyuntao 张运涛.
vector 一般用法:
2010-08-12 11:55:09.122 test[2550:207] 53
2010-08-12 11:55:09.124 test[2550:207] 29
2010-08-12 11:55:09.126 test[2550:207] 97
2010-08-12 11:55:09.128 test[2550:207] 85
2010-08-12 11:55:09.130 test[2550:207] 62
2010-08-12 11:55:09.132 test[2550:207] 76
2010-08-12 11:55:09.134 test[2550:207] 13
2010-08-12 11:55:09.136 test[2550:207] 93
2010-08-12 11:55:09.138 test[2550:207] 89
2010-08-12 11:55:09.140 test[2550:207] 80
53 29 97 85 62 76 13 93 89 80
2010-08-12 11:55:09.143 test[2550:207] After sorting ...:
2010-08-12 11:55:09.145 test[2550:207] 13
2010-08-12 11:55:09.147 test[2550:207] 29
2010-08-12 11:55:09.149 test[2550:207] 53
2010-08-12 11:55:09.151 test[2550:207] 62
2010-08-12 11:55:09.153 test[2550:207] 76
2010-08-12 11:55:09.155 test[2550:207] 80
2010-08-12 11:55:09.157 test[2550:207] 85
2010-08-12 11:55:09.159 test[2550:207] 89
2010-08-12 11:55:09.161 test[2550:207] 93
2010-08-12 11:55:09.163 test[2550:207] 97
2010-08-12 11:55:09.165 test[2550:207] The num 20 is not in the vector
vector 二维数组的使用:
87 84 75 75 73 45 42 41 22 18
97 87 80 57 57 49 46 35 17 15
88 87 78 73 59 39 34 32 20 13
87 81 66 61 54 54 53 27 22 14
95 90 77 63 57 41 36 29 15 13
99 83 80 76 74 66 47 43 27 11
97 94 80 68 61 47 36 19 18 15
67 57 51 47 45 40 36 35 28 16
97 82 79 76 61 59 54 17 11 10
82 78 77 46 38 31 24 23 17 15
list 容器使用:
after sort and unique, there is14 elements in the list
3 6 9 10 11 14 15 16 17 18 21 22 24 28
Set 容器使用:
21 29 31 35 45 61 64 80 86 97
map 容器使用:
(1,iPod)
(2,iPhone)
(3,iTouch)
Write to file succeed!
0 1 2 3 4 5 6 7 8 9
Read finished!
2010-08-12 11:55:09.183 test[2550:207] DrawRect
Terminating in response to SpringBoard's termination.
[Session started at 2010-08-12 11:59:01 +0800.]
2010-08-12 11:59:09.099 test[2564:207] test_int_int called!
2010-08-12 11:59:09.103 test[2564:207] test_int_float called!
2010-08-12 11:59:09.105 test[2564:207] template fun called!
结构与算符重载的使用:
5
自定义类CPoint的使用...
(10,10)
(20,20)
(50,50)
2010-08-12 11:59:09.108 test[2564:207] destruction fun called
2010-08-12 11:59:09.110 test[2564:207] destruction fun called
2010-08-12 11:59:09.112 test[2564:207] destruction fun called
string 的使用...
zhangyuntao in 2010.8.12 hehe -----张运涛
使用c_str...
zhangyuntao in 2010.8.12 hehe -----张运涛
从string转成NSString:2010-08-12 11:59:09.114 test[2564:207] zhangyuntao in 2010.8.12 hehe -----张运涛
从NSString转成string: zhangyuntao 张运涛.
vector 一般用法:
2010-08-12 11:59:09.116 test[2564:207] 33
2010-08-12 11:59:09.118 test[2564:207] 85
2010-08-12 11:59:09.120 test[2564:207] 10
2010-08-12 11:59:09.122 test[2564:207] 35
2010-08-12 11:59:09.123 test[2564:207] 46
2010-08-12 11:59:09.125 test[2564:207] 65
2010-08-12 11:59:09.127 test[2564:207] 56
2010-08-12 11:59:09.129 test[2564:207] 52
2010-08-12 11:59:09.131 test[2564:207] 48
2010-08-12 11:59:09.133 test[2564:207] 65
33 85 10 35 46 65 56 52 48 65
2010-08-12 11:59:09.135 test[2564:207] After sorting ...:
2010-08-12 11:59:09.137 test[2564:207] 10
2010-08-12 11:59:09.139 test[2564:207] 33
2010-08-12 11:59:09.141 test[2564:207] 35
2010-08-12 11:59:09.143 test[2564:207] 46
2010-08-12 11:59:09.145 test[2564:207] 48
2010-08-12 11:59:09.147 test[2564:207] 52
2010-08-12 11:59:09.149 test[2564:207] 56
2010-08-12 11:59:09.151 test[2564:207] 65
2010-08-12 11:59:09.152 test[2564:207] 65
2010-08-12 11:59:09.154 test[2564:207] 85
2010-08-12 11:59:09.156 test[2564:207] The num 20 is not in the vector
vector 二维数组的使用:
83 79 73 55 47 31 26 16 13 10
98 90 75 70 66 66 61 54 53 18
67 62 48 45 43 34 29 27 26 19
98 79 73 62 52 35 25 20 17 16
95 95 57 53 36 35 29 27 26 12
75 70 68 60 60 57 47 25 15 14
97 94 81 57 24 21 20 19 18 17
99 96 84 81 75 63 54 52 49 18
94 90 85 82 80 75 73 53 44 24
79 77 75 74 46 42 35 26 24 21
list 容器使用:
after sort and unique, there is12 elements in the list
0 2 9 10 11 12 13 17 20 21 28 29
Set 容器使用:
24 32 33 40 47 50 51 85 89 96
map 容器使用:
(1,iPod)
(2,iPhone)
(3,iTouch)
Write to file succeed!
0 1 2 3 4 5 6 7 8 9
Read finished!