{"id":710,"date":"2011-12-09T13:56:32","date_gmt":"2011-12-09T13:56:32","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=710"},"modified":"2022-02-17T06:24:03","modified_gmt":"2022-02-17T06:24:03","slug":"arrays-in-a-class","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/classes-objects-struct\/arrays-in-a-class","title":{"rendered":"Arrays In A Class"},"content":{"rendered":"<h4>Resizing An Array Of Objects In A Class<\/h4>\n<p>It won&#8217;t work.  Best approach usually is to use a list instead of an array.  Alternatively you have to copy the array to a new array with a different size using Array::Copy<\/p>\n<pre><code>\r\n\tArray::Copy(obj-&gt;ClassValueArray1, ClassValueArray1, NewSize);\t\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Resizing An Array Of Objects In A Class It won&#8217;t work. Best approach usually is to use a list instead of an array. Alternatively you have to copy the array to a new array with a different size using Array::Copy Array::Copy(obj-&gt;ClassValueArray1, ClassValueArray1, NewSize);<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-710","post","type-post","status-publish","format-standard","hentry","category-classes-objects-struct"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=710"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":1037,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/710\/revisions\/1037"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}