{"id":3413,"date":"2020-08-05T15:20:06","date_gmt":"2020-08-05T15:20:06","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3413"},"modified":"2020-08-05T15:21:58","modified_gmt":"2020-08-05T15:21:58","slug":"using-or","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/classes\/using-or","title":{"rendered":"Using . or ->"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">. for when its a simple member of a class class <\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\tMyClassName MyClass1();\n\tMyClass1.ClassVariable = 24;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">-&gt; for when its a class passed as a pointer<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\tMyClassName MyClass1();\n\tSomeFunction(&amp;MyClass1);\n\n\nvoid SomeFunction(*MyClass1)\n{\n\tMyClass1->ClassVariable = 24;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>. for when its a simple member of a class class -&gt; for when its a class passed as a pointer<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-3413","post","type-post","status-publish","format-standard","hentry","category-classes"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3413"}],"version-history":[{"count":3,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3413\/revisions"}],"predecessor-version":[{"id":3417,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3413\/revisions\/3417"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}