<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C++ structures, typedef and unions</title>
	<atom:link href="http://www.codingunit.com/cplusplus-tutorial-structures-typedef-and-unions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codingunit.com/cplusplus-tutorial-structures-typedef-and-unions</link>
	<description>CodingUnit is your online resource for learning to program. Tutorials on C, C++, PHP, Python, MySQL, Java, JQuery, Opengl, DirectX and much more!</description>
	<lastBuildDate>Mon, 06 Feb 2012 06:08:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Matt</title>
		<link>http://www.codingunit.com/cplusplus-tutorial-structures-typedef-and-unions/comment-page-1#comment-178</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 10 Nov 2009 14:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=515#comment-178</guid>
		<description>There is no longer any need to declare a variable as &#039;struct  var;&#039;, the &#039;struct&#039; should be dropped. Also, since this is true, there&#039;s no need for the tip on typedeffing the struct. Both of these were tricks used in C, but have no use in C++

An example:

#include 

struct A_Struct{
    int some_var;
};

int main(){
    A_Struct str;
    str.some_var = 255;
    std::cout &lt;&lt; str.some_var &lt;&lt; std::endl;
    return 0;
}</description>
		<content:encoded><![CDATA[<p>There is no longer any need to declare a variable as &#8216;struct  var;&#8217;, the &#8216;struct&#8217; should be dropped. Also, since this is true, there&#8217;s no need for the tip on typedeffing the struct. Both of these were tricks used in C, but have no use in C++</p>
<p>An example:</p>
<p>#include </p>
<p>struct A_Struct{<br />
    int some_var;<br />
};</p>
<p>int main(){<br />
    A_Struct str;<br />
    str.some_var = 255;<br />
    std::cout &lt;&lt; str.some_var &lt;&lt; std::endl;<br />
    return 0;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

