Advertisement
C_far

c_vector.inc (Examples->Results)

Feb 22nd, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. -------------------
  2. push 444, 555, 666, 777 and 888
  3. 444
  4. 555
  5. 666
  6. 777
  7. 888
  8. -------------------
  9. vector_is_storing_array : 0
  10. -------------------
  11. remove index(1)=555
  12. 444
  13. 666
  14. 777
  15. 888
  16. -------------------
  17. push 555 and 999
  18. 444
  19. 666
  20. 777
  21. 888
  22. 555
  23. 999
  24. -------------------
  25. set index(3)=888 -> index(3)=1888
  26. 444
  27. 666
  28. 777
  29. 1888
  30. 555
  31. 999
  32. -------------------
  33. remove index(5)=999, index(4)=555, index(2)=777, index(1)=666 and index(0)=444
  34. 1888
  35. -------------------
  36. remove index(0)=1888 | vector is free
  37. -------------------
  38. the vector is null
  39. -------------------
  40. push array(444), array(555), array(666), array(777) and array(888)
  41. size(8)
  42. 444
  43. 444
  44. 444
  45. 444
  46. 444
  47. 444
  48. 444
  49. 444
  50. size(4)
  51. 555
  52. 555
  53. 555
  54. 555
  55. size(16)
  56. 666
  57. 666
  58. 666
  59. 666
  60. 666
  61. 666
  62. 666
  63. 666
  64. 666
  65. 666
  66. 666
  67. 666
  68. 666
  69. 666
  70. 666
  71. 666
  72. size(2)
  73. 777
  74. 777
  75. size(8)
  76. 888
  77. 888
  78. 888
  79. 888
  80. 888
  81. 888
  82. 888
  83. 888
  84. -------------------
  85. vector_is_storing_array : 1
  86. -------------------
  87. remove index(1)=array(555)
  88. size(8)
  89. 444
  90. 444
  91. 444
  92. 444
  93. 444
  94. 444
  95. 444
  96. 444
  97. size(16)
  98. 666
  99. 666
  100. 666
  101. 666
  102. 666
  103. 666
  104. 666
  105. 666
  106. 666
  107. 666
  108. 666
  109. 666
  110. 666
  111. 666
  112. 666
  113. 666
  114. size(2)
  115. 777
  116. 777
  117. size(8)
  118. 888
  119. 888
  120. 888
  121. 888
  122. 888
  123. 888
  124. 888
  125. 888
  126. -------------------
  127. push array(999) and array(555)
  128. size(8)
  129. 444
  130. 444
  131. 444
  132. 444
  133. 444
  134. 444
  135. 444
  136. 444
  137. size(16)
  138. 666
  139. 666
  140. 666
  141. 666
  142. 666
  143. 666
  144. 666
  145. 666
  146. 666
  147. 666
  148. 666
  149. 666
  150. 666
  151. 666
  152. 666
  153. 666
  154. size(2)
  155. 777
  156. 777
  157. size(8)
  158. 888
  159. 888
  160. 888
  161. 888
  162. 888
  163. 888
  164. 888
  165. 888
  166. size(4)
  167. 999
  168. 999
  169. 999
  170. 999
  171. size(4)
  172. 555
  173. 555
  174. 555
  175. 555
  176. -------------------
  177. set index(2)=array(777) -> index(2)=array(222)
  178. size(8)
  179. 444
  180. 444
  181. 444
  182. 444
  183. 444
  184. 444
  185. 444
  186. 444
  187. size(16)
  188. 666
  189. 666
  190. 666
  191. 666
  192. 666
  193. 666
  194. 666
  195. 666
  196. 666
  197. 666
  198. 666
  199. 666
  200. 666
  201. 666
  202. 666
  203. 666
  204. size(8)
  205. 222
  206. 222
  207. 222
  208. 222
  209. 222
  210. 222
  211. 222
  212. 222
  213. size(8)
  214. 888
  215. 888
  216. 888
  217. 888
  218. 888
  219. 888
  220. 888
  221. 888
  222. size(4)
  223. 999
  224. 999
  225. 999
  226. 999
  227. size(4)
  228. 555
  229. 555
  230. 555
  231. 555
  232. -------------------
  233. remove index(5)=array(555), index(4)=array(999), index(2)=array(222), index(1)=array(666) and index(0)=array(444)
  234. size(8)
  235. 888
  236. 888
  237. 888
  238. 888
  239. 888
  240. 888
  241. 888
  242. 888
  243. -------------------
  244. remove index(0)=array(888) | vector is free
  245. -------------------
  246. the vector is null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement