{"id":128,"date":"2009-04-28T23:49:40","date_gmt":"2009-04-29T02:49:40","guid":{"rendered":"http:\/\/wordpress.matbra.com\/?p=128"},"modified":"2010-07-22T17:54:26","modified_gmt":"2010-07-22T20:54:26","slug":"pilha-com-ponteiros-estrutura-de-dados","status":"publish","type":"post","link":"https:\/\/wordpress.matbra.com\/en\/2009\/04\/28\/pilha-com-ponteiros-estrutura-de-dados\/","title":{"rendered":"Stack, using pointer, Data Structure."},"content":{"rendered":"<p>This is a implementation of a Stack using pointers. The basic thing is the structure of tPilha is <\/p>\n<p>[code lang=&#8221;C&#8221;]<br \/>\nconstant MAXPILHA = 100;<br \/>\ntipo tPilha {<br \/>\ninteiro dados[MAXPILHA];<br \/>\ninteiro *topo;<br \/>\n}; [\/code]<\/p>\n<p>Where *topo is a pointer to the first element in the stack. When you`re going to add a new one you verify if the stack is full, if it ins`t you put the data in a position in the stack and change the *topo. When removing, you decrement one in pointer *topo. Then it will reference the element that was there before. <\/p>\n<p>(I had an enunciation but it was too big to translate)<\/p>\n<p><a href=\"http:\/\/wordpress.matbra.com\/?attachment_id=130\">stack with pointers implementation<\/a>! <\/p>\n<p>Regards,<br \/>\nMatheus<\/p>\n<p>PS: You can see the enunciation in portuguese and then use <a href=\"http:\/\/translate.google.com\" target=\"_blank\">google translate<\/a> to translate it<br \/>\n<!--more--><\/p>","protected":false},"excerpt":{"rendered":"<p>This is a implementation of a Stack using pointers. The basic thing is the structure of tPilha is [code lang=&#8221;C&#8221;] constant MAXPILHA = 100; tipo<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/wordpress.matbra.com\/en\/2009\/04\/28\/pilha-com-ponteiros-estrutura-de-dados\/\">Continue reading<span class=\"screen-reader-text\">Stack, using pointer, Data Structure.<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,15,16],"tags":[315,18,24,52,19,53],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-aprendendo","category-c","category-estrutura-de-dados","tag-c","tag-exercicios","tag-pilha","tag-ponteiro","tag-resolvidos","tag-vetor","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/psjGE-24","_links":{"self":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/128\/revisions\/724"}],"wp:attachment":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}