<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3627169942682263002</id><updated>2026-07-23T22:56:07.122-07:00</updated><category term="c++"/><category term="c++ features"/><category term="history of c+"/><category term="stl c++"/><title type='text'>c plus plus</title><subtitle type='html'>This is a blog about the c++ language. It contains useful information. Also, I have added some tutorials on difficult topics such as inheritance, recursion...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3627169942682263002.post-5167512584246690586</id><published>2011-06-17T22:28:00.000-07:00</published><updated>2011-11-04T07:16:58.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c++"/><title type='text'>C++, The Language of Choice</title><content type='html'>It has been over 50 years that C++ is still around.&lt;br /&gt;C started around FORTRAN, BASIC... Even though all of those languages died. C is still around. It is widely used in the programming sector and ranks very close to Java.&lt;br /&gt;Many applications are still being built in the C++ language.&lt;br /&gt;As a computer Science major, this is the first language that I came to learn. Even though, I call it the first true programming language in the world, C++ has defects just like every other programming languages.&lt;br /&gt;I get more frustrated coding in C++ than coding in Java. There are so many errors that may evade a C++ programmers such as pointers... Even that seems a little minor. Sometimes, I spend hours trying to figure out what could be wrong in a code that seems perfect and should run fine.&lt;br /&gt;C++ is faster than Java, and is still the language of choice for embedded systems such as a radio, microwave or any other small machines.&lt;br /&gt;The ending note is C++ is a great language to learn as an introductory course in Computer Science. It is the inspiration to all the other great programming languages such as C#, Java, Objective-C...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037258391&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000037258391&amp;pubid=21000000000381344&quot; border=0 alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802006504&amp;pubid=21000000000381344&quot;&gt;$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037236790&amp;pubid=21000000000381344&quot;&gt;Sears Deal of the Day: Thule Car Top Carrier, Quest&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000033452583&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000033452583&amp;pubid=21000000000381344&quot; border=0 alt=&quot;Wholesale Fleece Blankets&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023682&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023682&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world! &quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802022320&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802022320&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802034205&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802034205&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802037515&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802037515&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802021841&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802021841&amp;pubid=21000000000381344&quot; border=0 alt=&quot;502239_Brand names, bargain prices at shoezoo.com. If you don&amp;#39;t love your new shoes, return them for free!&quot;&gt;&lt;/a&gt; &lt;!-- shoe zoo --&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023654&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023654&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/5167512584246690586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://studentcplusplus.blogspot.com/2011/06/c-language-of-choice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/5167512584246690586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/5167512584246690586'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/2011/06/c-language-of-choice.html' title='C++, The Language of Choice'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3627169942682263002.post-8525781106172204250</id><published>2009-04-16T05:06:00.000-07:00</published><updated>2011-11-04T07:16:39.795-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c++ features"/><title type='text'>C++ language features</title><content type='html'>&lt;p&gt;C++ inherits most of C&#39;s syntax and the &lt;a href=&quot;http://en.wikipedia.org/wiki/C_preprocessor&quot; title=&quot;C preprocessor&quot;&gt;C preprocessor&lt;/a&gt;. The following is a &lt;a href=&quot;http://en.wikipedia.org/wiki/Hello_world_program&quot; title=&quot;Hello world program&quot;&gt;Hello world program&lt;/a&gt; which uses the &lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B_standard_library&quot; title=&quot;C++ standard library&quot;&gt;C++ standard library&lt;/a&gt; stream facility to write a message to &lt;a href=&quot;http://en.wikipedia.org/wiki/Standard_output#Standard_output_.28stdout.29&quot; title=&quot;Standard output&quot; class=&quot;mw-redirect&quot;&gt;standard output&lt;/a&gt;:&lt;sup id=&quot;cite_ref-5&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-5&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id=&quot;cite_ref-6&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-6&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt; &lt;pre class=&quot;source-cpp&quot;&gt;&lt;span class=&quot;co2&quot;&gt;#include &lt;iostream&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;kw4&quot;&gt;int&lt;/span&gt; main&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;br0&quot;&gt;{&lt;/span&gt;&lt;br /&gt; std::&lt;span class=&quot;kw3&quot;&gt;cout&lt;/span&gt; &lt;&lt; &lt;span class=&quot;st0&quot;&gt;&quot;Hello, world!&quot;&lt;/span&gt;;&lt;br /&gt;&lt;span class=&quot;br0&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;&lt;a name=&quot;Operators_and_operator_overloading&quot; id=&quot;Operators_and_operator_overloading&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=7&quot; title=&quot;Edit section: Operators and operator overloading&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Operators and operator overloading&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;C++ provides more than &lt;a href=&quot;http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B&quot; title=&quot;Operators in C and C++&quot;&gt;30 operators&lt;/a&gt;, covering basic arithmetic, bit manipulation, indirection, comparisons, logical operations and more. Almost all operators can be &lt;a href=&quot;http://en.wikipedia.org/wiki/Operator_overloading&quot; title=&quot;Operator overloading&quot;&gt;overloaded&lt;/a&gt; for user-defined types, with a few notable exceptions such as member access (. and .*). The rich set of overloadable operators is central to using C++ as a &lt;a href=&quot;http://en.wikipedia.org/wiki/Domain_specific_language&quot; title=&quot;Domain specific language&quot; class=&quot;mw-redirect&quot;&gt;domain specific language&lt;/a&gt;. The overloadable operators are also an essential part of many advanced C++ programming techniques, such as &lt;a href=&quot;http://en.wikipedia.org/wiki/Smart_pointer&quot; title=&quot;Smart pointer&quot;&gt;smart pointers&lt;/a&gt;. Overloading an operator does not change the precedence of calculations involving the operator, nor does it change the number of operands that the operator uses (any operand may however be ignored).&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Templates&quot; id=&quot;Templates&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=8&quot; title=&quot;Edit section: Templates&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Templates&lt;/span&gt;&lt;/h3&gt; &lt;div class=&quot;rellink boilerplate seealso&quot;&gt;See also: &lt;a href=&quot;http://en.wikipedia.org/wiki/Generic_programming&quot; title=&quot;Generic programming&quot;&gt;generic programming&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_metaprogramming&quot; title=&quot;Template metaprogramming&quot;&gt;template metaprogramming&lt;/a&gt;&lt;/div&gt; &lt;p&gt;C++ templates enable &lt;a href=&quot;http://en.wikipedia.org/wiki/Generic_programming&quot; title=&quot;Generic programming&quot;&gt;generic programming&lt;/a&gt;. C++ supports both function and class templates. Templates may be parameterized by types, compile-time constants, and other templates. C++ templates are implemented by &lt;i&gt;instantiation&lt;/i&gt; at compile-time. To instantiate a template, compilers substitute specific arguments for a template&#39;s parameters to generate a concrete function or class instance. Templates are a powerful tool that can be used for &lt;a href=&quot;http://en.wikipedia.org/wiki/Generic_programming&quot; title=&quot;Generic programming&quot;&gt;generic programming&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_metaprogramming&quot; title=&quot;Template metaprogramming&quot;&gt;template metaprogramming&lt;/a&gt;, and code optimization, but this power implies a cost. Template use may increase code size, since each template instantiation produces a copy of the template code: one for each set of template arguments. This is in contrast to run-time generics seen in other languages (e.g. &lt;a href=&quot;http://en.wikipedia.org/wiki/Generics_in_Java&quot; title=&quot;Generics in Java&quot;&gt;Java&lt;/a&gt;) where at compile-time the type is erased and a single template body is preserved.&lt;/p&gt; &lt;p&gt;Templates are different from macros: while both of these compile-time language features enable conditional compilation, templates are not restricted to lexical substitution. Templates are aware of the semantics and type system of their companion language, as well as all compile-time type definitions, and can perform high-level operations including programmatic flow control based on evaluation of strictly type-checked parameters. Macros are capable of conditional control over compilation based on predetermined criteria, but cannot instantiate new types, recurse, or perform type evaluation and in effect are limited to pre-compilation text-substitution and text-inclusion/exclusion. In other words, macros can control compilation flow based on pre-defined symbols but cannot, unlike templates, independently instantiate new symbols. Templates are a tool for static &lt;a href=&quot;http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming&quot; title=&quot;Polymorphism in object-oriented programming&quot;&gt;polymorphism&lt;/a&gt; (see below) and &lt;a href=&quot;http://en.wikipedia.org/wiki/Generic_programming&quot; title=&quot;Generic programming&quot;&gt;generic programming&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;In addition, templates are a compile time mechanism in C++ which is &lt;a href=&quot;http://en.wikipedia.org/wiki/Turing-complete&quot; title=&quot;Turing-complete&quot; class=&quot;mw-redirect&quot;&gt;Turing-complete&lt;/a&gt;, meaning that any computation expressible by a computer program can be computed, in some form, by a &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_metaprogramming&quot; title=&quot;Template metaprogramming&quot;&gt;template metaprogram&lt;/a&gt; prior to runtime.&lt;/p&gt; &lt;p&gt;In summary, a template is a compile-time parameterized function or class written without knowledge of the specific arguments used to instantiate it. After instantiation the resulting code is equivalent to code written specifically for the passed arguments. In this manner, templates provide a way to decouple generic, broadly-applicable aspects of functions and classes (encoded in templates) from specific aspects (encoded in template parameters) without sacrificing performance due to abstraction.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Objects&quot; id=&quot;Objects&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=9&quot; title=&quot;Edit section: Objects&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Objects&lt;/span&gt;&lt;/h3&gt; &lt;div class=&quot;rellink noprint relarticle mainarticle&quot;&gt;Main article: &lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B_classes&quot; title=&quot;C++ classes&quot;&gt;C++ classes&lt;/a&gt;&lt;/div&gt; &lt;p&gt;C++ introduces &lt;a href=&quot;http://en.wikipedia.org/wiki/Object-oriented&quot; title=&quot;Object-oriented&quot; class=&quot;mw-redirect&quot;&gt;object-oriented&lt;/a&gt; (OO) features to C. It offers &lt;a href=&quot;http://en.wikipedia.org/wiki/Class_%28computer_science%29&quot; title=&quot;Class (computer science)&quot;&gt;classes&lt;/a&gt;, which provide the four features commonly present in OO (and some non-OO) languages: &lt;a href=&quot;http://en.wikipedia.org/wiki/Abstraction_%28computer_science%29&quot; title=&quot;Abstraction (computer science)&quot;&gt;abstraction&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Information_hiding&quot; title=&quot;Information hiding&quot;&gt;encapsulation&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Inheritance_%28object-oriented_programming%29&quot; title=&quot;Inheritance (object-oriented programming)&quot; class=&quot;mw-redirect&quot;&gt;inheritance&lt;/a&gt;, and &lt;a href=&quot;http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29&quot; title=&quot;Polymorphism (computer science)&quot; class=&quot;mw-redirect&quot;&gt;polymorphism&lt;/a&gt;. Objects are instances of classes created at runtime. The class can be thought of as a template from which many different individual objects may be generated as a program runs.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Encapsulation&quot; id=&quot;Encapsulation&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=10&quot; title=&quot;Edit section: Encapsulation&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Encapsulation&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Information_hiding&quot; title=&quot;Information hiding&quot;&gt;Encapsulation&lt;/a&gt; is the hiding of information. C++ implements encapsulation by allowing all members of a class to be declared as either public, private, or protected. A public member of the class is accessible to any function. A private member is accessible only to functions that are members of that class and to functions and classes explicitly granted access permission by the class (&quot;friends&quot;). A protected member is accessible to members of classes that inherit from the class in addition to the class itself and any friends.&lt;/p&gt; &lt;p&gt;The OO principle is that all of the functions (and only the functions) that access the internal representation of a type should be encapsulated within the type definition. C++ supports this (via member functions and friend functions), but does not enforce it: the programmer can declare parts or all of the representation of a type to be public, and is allowed to make public entities that are not part of the representation of the type. Because of this, C++ supports not just OO programming, but other weaker decomposition paradigms, like &lt;a href=&quot;http://en.wikipedia.org/wiki/Modularity_%28programming%29&quot; title=&quot;Modularity (programming)&quot; class=&quot;mw-redirect&quot;&gt;modular programming&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;It is generally considered good practice to make all &lt;a href=&quot;http://en.wikipedia.org/wiki/Data&quot; title=&quot;Data&quot;&gt;data&lt;/a&gt; private or protected, and to make public only those functions that are part of a minimal interface for users of the class. This hides all the details of data implementation, allowing the designer to later fundamentally change the implementation without changing the interface in any way.&lt;sup id=&quot;cite_ref-cppcs_7-0&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-cppcs-7&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id=&quot;cite_ref-industrialcpp_8-0&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-industrialcpp-8&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Inheritance&quot; id=&quot;Inheritance&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=11&quot; title=&quot;Edit section: Inheritance&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Inheritance&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Inheritance_%28computer_science%29&quot; title=&quot;Inheritance (computer science)&quot;&gt;Inheritance&lt;/a&gt; allows one data type to acquire properties of other data types. Inheritance from a base class may be declared as public, protected, or private. This access specifier determines whether unrelated and derived classes can access the inherited public and protected members of the base class. Only public inheritance corresponds to what is usually meant by &quot;inheritance&quot;. The other two forms are much less frequently used. If the access specifier is omitted, a &quot;class&quot; inherits privately, while a &quot;struct&quot; inherits publicly. Base classes may be declared as virtual; this is called &lt;a href=&quot;http://en.wikipedia.org/wiki/Virtual_inheritance&quot; title=&quot;Virtual inheritance&quot;&gt;virtual inheritance&lt;/a&gt;. Virtual inheritance ensures that only one instance of a base class exists in the inheritance graph, avoiding some of the ambiguity problems of &lt;a href=&quot;http://en.wikipedia.org/wiki/Multiple_inheritance&quot; title=&quot;Multiple inheritance&quot;&gt;multiple inheritance&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Multiple_inheritance&quot; title=&quot;Multiple inheritance&quot;&gt;Multiple inheritance&lt;/a&gt;&lt;/b&gt; is a C++ feature sometimes considered controversial. Multiple inheritance allows a class to be derived from more than one base class; this can result in a complicated graph of inheritance relationships. For example, a &quot;Flying Cat&quot; class can inherit from both &quot;Cat&quot; and &quot;Flying Mammal&quot;. Some other languages, such as &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_%28programming_language%29&quot; title=&quot;Java (programming language)&quot;&gt;Java&lt;/a&gt; or &lt;a href=&quot;http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29&quot; title=&quot;C Sharp (programming language)&quot;&gt;C#&lt;/a&gt;, accomplish something similar (although more limited) by allowing inheritance of multiple &lt;a href=&quot;http://en.wikipedia.org/wiki/Interface_%28computer_science%29&quot; title=&quot;Interface (computer science)&quot;&gt;interfaces&lt;/a&gt; while restricting the number of base classes to one (interfaces, unlike classes, provide only declarations of member functions, no implementation or member data).&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Polymorphism&quot; id=&quot;Polymorphism&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=12&quot; title=&quot;Edit section: Polymorphism&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Polymorphism&lt;/span&gt;&lt;/h3&gt; &lt;div class=&quot;rellink boilerplate seealso&quot;&gt;See also: &lt;a href=&quot;http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming&quot; title=&quot;Polymorphism in object-oriented programming&quot;&gt;Polymorphism in object-oriented programming&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Type_polymorphism&quot; title=&quot;Type polymorphism&quot;&gt;Polymorphism&lt;/a&gt; enables one common interface for many implementations, and for objects to act differently under different circumstances.&lt;/p&gt; &lt;p&gt;C++ supports several kinds of &lt;i&gt;static&lt;/i&gt; (&lt;a href=&quot;http://en.wikipedia.org/wiki/Compile-time&quot; title=&quot;Compile-time&quot; class=&quot;mw-redirect&quot;&gt;compile-time&lt;/a&gt;) and &lt;i&gt;dynamic&lt;/i&gt; (&lt;a href=&quot;http://en.wikipedia.org/wiki/Run-time&quot; title=&quot;Run-time&quot; class=&quot;mw-redirect&quot;&gt;run-time&lt;/a&gt;) &lt;a href=&quot;http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29&quot; title=&quot;Polymorphism (computer science)&quot; class=&quot;mw-redirect&quot;&gt;polymorphisms&lt;/a&gt;. Compile-time polymorphism does not allow for certain run-time decisions, while run-time polymorphism typically incurs a performance penalty.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Static_polymorphism&quot; id=&quot;Static_polymorphism&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=13&quot; title=&quot;Edit section: Static polymorphism&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Static polymorphism&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Function_overloading&quot; title=&quot;Function overloading&quot; class=&quot;mw-redirect&quot;&gt;Function overloading&lt;/a&gt; allows programs to declare multiple functions having the same name (but with different arguments). The functions are distinguished by the number and/or types of their &lt;a href=&quot;http://en.wikipedia.org/wiki/Parameter_%28computer_science%29&quot; title=&quot;Parameter (computer science)&quot;&gt;formal parameters&lt;/a&gt;. Thus, the same function name can refer to different functions depending on the context in which it is used. The type returned by the function is not used to distinguish overloaded functions.&lt;/p&gt; &lt;p&gt;When declaring a function, a programmer can specify &lt;a href=&quot;http://en.wikipedia.org/wiki/Default_arguments&quot; title=&quot;Default arguments&quot; class=&quot;mw-redirect&quot;&gt;default arguments&lt;/a&gt; for one or more parameters. Doing so allows the parameters with defaults to optionally be omitted when the function is called, in which case the default arguments will be used. When a function is called with fewer arguments than there are declared parameters, explicit arguments are matched to parameters in left-to-right order, with any unmatched parameters at the end of the parameter list being assigned their default arguments. In many cases, specifying default arguments in a single function declaration is preferable to providing overloaded function definitions with different numbers of parameters.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Generic_programming#Templates&quot; title=&quot;Generic programming&quot;&gt;Templates&lt;/a&gt; in C++ provide a sophisticated mechanism for writing generic, polymorphic code. In particular, through the &lt;a href=&quot;http://en.wikipedia.org/wiki/Curiously_Recurring_Template_Pattern&quot; title=&quot;Curiously Recurring Template Pattern&quot; class=&quot;mw-redirect&quot;&gt;Curiously Recurring Template Pattern&lt;/a&gt; it&#39;s possible to implement a form of static polymorphism that closely mimics the syntax for overriding virtual functions. Since C++ templates are type-aware and &lt;a href=&quot;http://en.wikipedia.org/wiki/Turing-complete&quot; title=&quot;Turing-complete&quot; class=&quot;mw-redirect&quot;&gt;Turing-complete&lt;/a&gt; they can also be used to let the compiler resolve recursive conditionals and generate substantial programs through &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_metaprogramming&quot; title=&quot;Template metaprogramming&quot;&gt;template metaprogramming&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Dynamic_polymorphism&quot; id=&quot;Dynamic_polymorphism&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=14&quot; title=&quot;Edit section: Dynamic polymorphism&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Dynamic polymorphism&lt;/span&gt;&lt;/h4&gt; &lt;p&gt;&lt;a name=&quot;Inheritance_2&quot; id=&quot;Inheritance_2&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h5&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=15&quot; title=&quot;Edit section: Inheritance&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Inheritance&lt;/span&gt;&lt;/h5&gt; &lt;p&gt;Variable pointers (and references) to a base class type in C++ can refer to objects of any derived classes of that type in addition to objects exactly matching the variable type. This allows arrays and other kinds of containers to hold pointers to objects of differing types. Because assignment of values to variables usually occurs at run-time, this is necessarily a run-time phenomenon.&lt;/p&gt; &lt;p&gt;C++ also provides a &lt;code&gt;dynamic_cast&lt;/code&gt; operator, which allows the program to safely attempt conversion of an object into an object of a more specific object type (as opposed to conversion to a more general type, which is always allowed). This feature relies on &lt;a href=&quot;http://en.wikipedia.org/wiki/Run-time_type_information&quot; title=&quot;Run-time type information&quot;&gt;run-time type information&lt;/a&gt; (RTTI). Objects known to be of a certain specific type can also be cast to that type with &lt;code&gt;static_cast&lt;/code&gt;, a purely compile-time construct which is faster and does not require RTTI.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;Virtual_member_functions&quot; id=&quot;Virtual_member_functions&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;h5&gt;&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=16&quot; title=&quot;Edit section: Virtual member functions&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Virtual member functions&lt;/span&gt;&lt;/h5&gt; &lt;p&gt;Ordinarily when a function in a derived class &lt;a href=&quot;http://en.wikipedia.org/wiki/Method_overriding_%28programming%29&quot; title=&quot;Method overriding (programming)&quot;&gt;overrides&lt;/a&gt; a function in a base class, the function to call is determined by the type of the object. A given function is overridden when there exists no difference, in the number or type of parameters, between two or more definitions of that function. Hence, at compile time it may not be possible to determine the type of the object and therefore the correct function to call, given only a base class pointer; the decision is therefore put off until runtime. This is called &lt;a href=&quot;http://en.wikipedia.org/wiki/Dynamic_dispatch&quot; title=&quot;Dynamic dispatch&quot;&gt;dynamic dispatch&lt;/a&gt;. &lt;a href=&quot;http://en.wikipedia.org/wiki/Virtual_functions&quot; title=&quot;Virtual functions&quot; class=&quot;mw-redirect&quot;&gt;Virtual member functions&lt;/a&gt; or &lt;i&gt;methods&lt;/i&gt;&lt;sup id=&quot;cite_ref-9&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-9&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; allow the most specific implementation of the function to be called, according to the actual run-time type of the object. In C++, this is commonly done using &lt;a href=&quot;http://en.wikipedia.org/wiki/Virtual_function_table&quot; title=&quot;Virtual function table&quot; class=&quot;mw-redirect&quot;&gt;virtual function tables&lt;/a&gt;. If the object type is known, this may be bypassed by prepending a &lt;a href=&quot;http://en.wikipedia.org/wiki/Fully_qualified_name&quot; title=&quot;Fully qualified name&quot;&gt;fully qualified class name&lt;/a&gt; before the function call, but in general calls to virtual functions are resolved at run time.&lt;/p&gt; &lt;p&gt;In addition to standard member functions, operator overloads and destructors can be virtual. A general rule of thumb is that if any functions in the class are virtual, the destructor should be as well. As the type of an object at its creation is known at compile time, constructors, and by extension copy constructors, cannot be virtual. Nonetheless a situation may arise where a copy of an object needs to be created when a pointer to a derived object is passed as a pointer to a base object. In such a case a common solution is to create a &lt;code&gt;clone()&lt;/code&gt; (or similar) function and declare that as virtual. The &lt;code&gt;clone()&lt;/code&gt; method creates and returns a copy of the derived class when called.&lt;/p&gt; &lt;p&gt;A member function can also be made &quot;pure virtual&quot; by appending it with &lt;code&gt;= 0&lt;/code&gt; after the closing parenthesis and before the semicolon. Objects cannot be created of a class with a pure virtual function and are called abstract data types. Such abstract data types can only be derived from. Any derived class inherits the virtual function as pure and must provide a non-pure definition of it (and all other pure virtual functions) before objects of the derived class can be created. An attempt to create an object from a class with a pure virtual function or inherited pure virtual function will be flagged as a compile-time error.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037258391&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000037258391&amp;pubid=21000000000381344&quot; border=0 alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802006504&amp;pubid=21000000000381344&quot;&gt;$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037236790&amp;pubid=21000000000381344&quot;&gt;Sears Deal of the Day: Thule Car Top Carrier, Quest&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000033452583&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000033452583&amp;pubid=21000000000381344&quot; border=0 alt=&quot;Wholesale Fleece Blankets&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023682&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023682&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world! &quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802022320&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802022320&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802034205&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802034205&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802037515&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802037515&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802021841&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802021841&amp;pubid=21000000000381344&quot; border=0 alt=&quot;502239_Brand names, bargain prices at shoezoo.com. If you don&amp;#39;t love your new shoes, return them for free!&quot;&gt;&lt;/a&gt; &lt;!-- shoe zoo --&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023654&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023654&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/8525781106172204250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/c-language-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/8525781106172204250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/8525781106172204250'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/c-language-features.html' title='C++ language features'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3627169942682263002.post-548801524760311113</id><published>2009-04-16T05:05:00.000-07:00</published><updated>2011-11-04T07:16:16.446-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="stl c++"/><title type='text'>Standard Template library</title><content type='html'>&lt;p&gt;The 1998 &lt;a href=&quot;http://en.wikipedia.org/wiki/American_National_Standards_Institute&quot; title=&quot;American National Standards Institute&quot;&gt;ANSI&lt;/a&gt;/&lt;a href=&quot;http://en.wikipedia.org/wiki/International_Organization_for_Standardization&quot; title=&quot;International Organization for Standardization&quot;&gt;ISO&lt;/a&gt; C++ &lt;a href=&quot;http://en.wikipedia.org/wiki/Standardization&quot; title=&quot;Standardization&quot;&gt;standard&lt;/a&gt; consists of two parts: the &lt;a href=&quot;http://en.wikipedia.org/wiki/Core_language&quot; title=&quot;Core language&quot;&gt;core language&lt;/a&gt; and the &lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B_standard_library&quot; title=&quot;C++ standard library&quot;&gt;C++ standard library&lt;/a&gt;; the latter includes most of the &lt;a href=&quot;http://en.wikipedia.org/wiki/Standard_Template_Library&quot; title=&quot;Standard Template Library&quot;&gt;Standard Template Library&lt;/a&gt; (STL) and a slightly modified version of the C standard library. Many C++ libraries exist which are not part of the standard, and, using linkage specification, libraries can even be written in languages such as &lt;a href=&quot;http://en.wikipedia.org/wiki/C_%28programming_language%29&quot; title=&quot;C (programming language)&quot;&gt;C&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Fortran&quot; title=&quot;Fortran&quot;&gt;Fortran&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Pascal_%28programming_language%29&quot; title=&quot;Pascal (programming language)&quot;&gt;Pascal&lt;/a&gt;, or &lt;a href=&quot;http://en.wikipedia.org/wiki/BASIC&quot; title=&quot;BASIC&quot;&gt;BASIC&lt;/a&gt;. Which of these are supported is compiler dependent.&lt;/p&gt; &lt;p&gt;The C++ standard library incorporates the C standard library with some small modifications to make it optimized with the C++ language. Another large part of the C++ library is based on the STL. This provides such useful tools as &lt;a href=&quot;http://en.wikipedia.org/wiki/Container_%28data_structure%29&quot; title=&quot;Container (data structure)&quot;&gt;containers&lt;/a&gt; (for example &lt;a href=&quot;http://en.wikipedia.org/wiki/Array&quot; title=&quot;Array&quot;&gt;vectors&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Linked_list&quot; title=&quot;Linked list&quot;&gt;lists&lt;/a&gt;), &lt;a href=&quot;http://en.wikipedia.org/wiki/Iterator&quot; title=&quot;Iterator&quot;&gt;iterators&lt;/a&gt; to provide these containers with array-like access and &lt;a href=&quot;http://en.wikipedia.org/wiki/Algorithm&quot; title=&quot;Algorithm&quot;&gt;algorithms&lt;/a&gt; to perform operations such as searching and sorting. Furthermore (multi)maps (&lt;a href=&quot;http://en.wikipedia.org/wiki/Associative_array&quot; title=&quot;Associative array&quot;&gt;associative arrays&lt;/a&gt;) and (multi)sets are provided, all of which export compatible interfaces. Therefore it is possible, using templates, to write generic algorithms that work with any container or on any sequence defined by iterators. As in C, the &lt;a href=&quot;http://en.wikipedia.org/wiki/Feature&quot; title=&quot;Feature&quot;&gt;features&lt;/a&gt; of the &lt;a href=&quot;http://en.wikipedia.org/wiki/Library&quot; title=&quot;Library&quot;&gt;library&lt;/a&gt; are accessed by using the &lt;code&gt;#include&lt;/code&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Directive_%28programming%29&quot; title=&quot;Directive (programming)&quot;&gt;directive&lt;/a&gt; to include a &lt;a href=&quot;http://en.wikipedia.org/wiki/Standard_header&quot; title=&quot;Standard header&quot; class=&quot;mw-redirect&quot;&gt;standard header&lt;/a&gt;. C++ provides &lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B_standard_library#Standard_headers&quot; title=&quot;C++ standard library&quot;&gt;69 standard headers&lt;/a&gt;, of which 19 are deprecated.&lt;/p&gt; &lt;p&gt;The STL was originally a third-party library from &lt;a href=&quot;http://en.wikipedia.org/wiki/Hewlett-Packard&quot; title=&quot;Hewlett-Packard&quot;&gt;HP&lt;/a&gt; and later &lt;a href=&quot;http://en.wikipedia.org/wiki/Silicon_Graphics&quot; title=&quot;Silicon Graphics&quot;&gt;SGI&lt;/a&gt;, before its incorporation into the C++ standard. The standard does not refer to it as &quot;STL&quot;, as it is merely a part of the standard library, but many people still use that term to distinguish it from the rest of the library (input/output streams, internationalization, diagnostics, the C library subset, etc.).&lt;/p&gt; &lt;p&gt;Most C++ compilers provide an implementation of the C++ standard library, including the STL. Compiler-independent implementations of the STL, such as &lt;a href=&quot;http://en.wikipedia.org/w/index.php?title=STLPort&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;STLPort (page does not exist)&quot;&gt;STLPort&lt;/a&gt;, also exist. Other projects also produce various custom implementations of the C++ standard library and the STL with various design goals.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037258391&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000037258391&amp;pubid=21000000000381344&quot; border=0 alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802006504&amp;pubid=21000000000381344&quot;&gt;$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037236790&amp;pubid=21000000000381344&quot;&gt;Sears Deal of the Day: Thule Car Top Carrier, Quest&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000033452583&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000033452583&amp;pubid=21000000000381344&quot; border=0 alt=&quot;Wholesale Fleece Blankets&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023682&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023682&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world! &quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802022320&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802022320&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802034205&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802034205&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802037515&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802037515&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802021841&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802021841&amp;pubid=21000000000381344&quot; border=0 alt=&quot;502239_Brand names, bargain prices at shoezoo.com. If you don&amp;#39;t love your new shoes, return them for free!&quot;&gt;&lt;/a&gt; &lt;!-- shoe zoo --&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023654&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023654&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/548801524760311113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/standard-template-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/548801524760311113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/548801524760311113'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/standard-template-library.html' title='Standard Template library'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3627169942682263002.post-7496633350432158257</id><published>2009-04-16T05:04:00.000-07:00</published><updated>2011-11-04T07:15:49.686-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="history of c+"/><title type='text'>History of C++</title><content type='html'>&lt;p&gt;Stroustrup began work on &#39;C with Classes&#39; in 1979. The idea of creating a new language originated from Stroustrup&#39;s experience in programming for his Ph.D. thesis. Stroustrup found that &lt;a href=&quot;http://en.wikipedia.org/wiki/Simula&quot; title=&quot;Simula&quot;&gt;Simula&lt;/a&gt; had features that were very helpful for large software development, but the language was too slow for practical use, while &lt;a href=&quot;http://en.wikipedia.org/wiki/BCPL&quot; title=&quot;BCPL&quot;&gt;BCPL&lt;/a&gt; was fast but too low-level to be suitable for large software development. When Stroustrup started working in &lt;a href=&quot;http://en.wikipedia.org/wiki/AT%26T_Bell_Labs&quot; title=&quot;AT&amp;amp;T Bell Labs&quot; class=&quot;mw-redirect&quot;&gt;AT&amp;amp;T Bell Labs&lt;/a&gt;, he had the problem of analyzing the &lt;a href=&quot;http://en.wikipedia.org/wiki/Unix&quot; title=&quot;Unix&quot;&gt;UNIX&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Kernel_%28computer_science%29&quot; title=&quot;Kernel (computer science)&quot; class=&quot;mw-redirect&quot;&gt;kernel&lt;/a&gt; with respect to &lt;a href=&quot;http://en.wikipedia.org/wiki/Distributed_computing&quot; title=&quot;Distributed computing&quot;&gt;distributed computing&lt;/a&gt;. Remembering his Ph.D. experience, Stroustrup set out to enhance the &lt;a href=&quot;http://en.wikipedia.org/wiki/C_%28programming_language%29&quot; title=&quot;C (programming language)&quot;&gt;C&lt;/a&gt; language with &lt;a href=&quot;http://en.wikipedia.org/wiki/Simula&quot; title=&quot;Simula&quot;&gt;Simula&lt;/a&gt;-like features. C was chosen because it was general-purpose, fast, portable and widely used. Besides C and Simula, some other languages that inspired him were &lt;a href=&quot;http://en.wikipedia.org/wiki/ALGOL_68&quot; title=&quot;ALGOL 68&quot;&gt;ALGOL 68&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Ada_programming_language&quot; title=&quot;Ada programming language&quot; class=&quot;mw-redirect&quot;&gt;Ada&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/CLU_programming_language&quot; title=&quot;CLU programming language&quot; class=&quot;mw-redirect&quot;&gt;CLU&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/ML_programming_language&quot; title=&quot;ML programming language&quot; class=&quot;mw-redirect&quot;&gt;ML&lt;/a&gt;. At first, the class, derived class, strong type checking, &lt;a href=&quot;http://en.wikipedia.org/wiki/Inlining&quot; title=&quot;Inlining&quot; class=&quot;mw-redirect&quot;&gt;inlining&lt;/a&gt;, and default argument features were added to C via &lt;a href=&quot;http://en.wikipedia.org/wiki/Cfront&quot; title=&quot;Cfront&quot;&gt;Cfront&lt;/a&gt;. The first commercial release occurred in October 1985.&lt;sup id=&quot;cite_ref-invention_1-0&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-invention-1&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In 1983, the name of the language was changed from &lt;i&gt;C with Classes&lt;/i&gt; to C++ (++ being the &lt;a href=&quot;http://en.wikipedia.org/wiki/Increment&quot; title=&quot;Increment&quot;&gt;increment operator&lt;/a&gt; in C and C++). New features were added including &lt;a href=&quot;http://en.wikipedia.org/wiki/Virtual_function&quot; title=&quot;Virtual function&quot;&gt;virtual functions&lt;/a&gt;, function name and operator overloading, references, constants, user-controlled free-store memory control, improved type checking, and BCPL style single-line comments with two forward slashes (//). In 1985, the first edition of &lt;i&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language&quot; title=&quot;The C++ Programming Language&quot;&gt;The C++ Programming Language&lt;/a&gt;&lt;/i&gt; was released, providing an important reference to the language, since there was not yet an official standard. In 1989, Release 2.0 of C++ was released. New features included multiple inheritance, abstract classes, static member functions, &lt;a href=&quot;http://en.wikipedia.org/wiki/Const_correctness&quot; title=&quot;Const correctness&quot; class=&quot;mw-redirect&quot;&gt;const member functions&lt;/a&gt;, and protected members. In 1990, &lt;i&gt;The Annotated C++ Reference Manual&lt;/i&gt; was published. This work became the basis for the future standard. Late addition of features included &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_%28programming%29&quot; title=&quot;Template (programming)&quot;&gt;templates&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Exceptions&quot; title=&quot;Exceptions&quot; class=&quot;mw-redirect&quot;&gt;exceptions&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Namespace_%28computer_science%29&quot; title=&quot;Namespace (computer science)&quot;&gt;namespaces&lt;/a&gt;, new &lt;a href=&quot;http://en.wikipedia.org/wiki/Cast_%28computer_science%29&quot; title=&quot;Cast (computer science)&quot; class=&quot;mw-redirect&quot;&gt;casts&lt;/a&gt;, and a &lt;a href=&quot;http://en.wikipedia.org/wiki/Boolean_datatype&quot; title=&quot;Boolean datatype&quot;&gt;Boolean type&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;As the C++ language evolved, a standard library also evolved with it. The first addition to the C++ standard library was the &lt;a href=&quot;http://en.wikipedia.org/wiki/Iostream&quot; title=&quot;Iostream&quot;&gt;stream I/O library&lt;/a&gt; which provided facilities to replace the traditional C functions such as &lt;a href=&quot;http://en.wikipedia.org/wiki/Printf&quot; title=&quot;Printf&quot;&gt;printf&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Scanf&quot; title=&quot;Scanf&quot;&gt;scanf&lt;/a&gt;. Later, among the most significant additions to the standard library, was the &lt;a href=&quot;http://en.wikipedia.org/wiki/Standard_Template_Library&quot; title=&quot;Standard Template Library&quot;&gt;Standard Template Library&lt;/a&gt;.&lt;/p&gt; C++ continues to be used and is still one of the preferred programming languages to develop professional applications. The language has gone from being mostly Western, to attracting programmers from all over the world.&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-present_day-2&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037258391&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000037258391&amp;pubid=21000000000381344&quot; border=0 alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802006504&amp;pubid=21000000000381344&quot;&gt;$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037236790&amp;pubid=21000000000381344&quot;&gt;Sears Deal of the Day: Thule Car Top Carrier, Quest&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000033452583&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000033452583&amp;pubid=21000000000381344&quot; border=0 alt=&quot;Wholesale Fleece Blankets&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023682&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023682&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world! &quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802022320&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802022320&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802034205&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802034205&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802037515&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802037515&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802021841&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802021841&amp;pubid=21000000000381344&quot; border=0 alt=&quot;502239_Brand names, bargain prices at shoezoo.com. If you don&amp;#39;t love your new shoes, return them for free!&quot;&gt;&lt;/a&gt; &lt;!-- shoe zoo --&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023654&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023654&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!&quot;&gt;&lt;/a&gt;</content><link rel="related" href="www.irap123.com" title="History of C++"/><link rel='replies' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/7496633350432158257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/history-of-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/7496633350432158257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/7496633350432158257'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/history-of-c.html' title='History of C++'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3627169942682263002.post-3725622276823122993</id><published>2009-04-16T04:38:00.000-07:00</published><updated>2011-11-04T07:15:03.949-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c++"/><title type='text'>C plus plus intro</title><content type='html'>&lt;p&gt;&lt;b&gt;C++&lt;/b&gt; (&quot;&lt;b&gt;C Plus Plus&lt;/b&gt;&quot;, pronounced &lt;span title=&quot;Pronunciation in the International Phonetic Alphabet (IPA)&quot; class=&quot;IPA&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Wikipedia:IPA_for_English&quot; title=&quot;Wikipedia:IPA for English&quot;&gt;/ˌsiːˌplʌsˈplʌs/&lt;/a&gt;&lt;/span&gt;) is a general-purpose &lt;a href=&quot;http://en.wikipedia.org/wiki/Programming_language&quot; title=&quot;Programming language&quot;&gt;programming language&lt;/a&gt;. It is regarded as a &lt;i&gt;middle-level&lt;/i&gt; language, as it comprises a combination of both &lt;a href=&quot;http://en.wikipedia.org/wiki/High-level_programming_language&quot; title=&quot;High-level programming language&quot;&gt;high-level&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Low-level_programming_language&quot; title=&quot;Low-level programming language&quot;&gt;low-level&lt;/a&gt; language features.&lt;sup id=&quot;cite_ref-0&quot; class=&quot;reference&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B#cite_note-0&quot; title=&quot;&quot;&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; It was developed by &lt;a href=&quot;http://en.wikipedia.org/wiki/Bjarne_Stroustrup&quot; title=&quot;Bjarne Stroustrup&quot;&gt;Bjarne Stroustrup&lt;/a&gt; starting in 1979 at &lt;a href=&quot;http://en.wikipedia.org/wiki/Bell_Labs&quot; title=&quot;Bell Labs&quot;&gt;Bell Labs&lt;/a&gt; as an enhancement to the &lt;a href=&quot;http://en.wikipedia.org/wiki/C_%28programming_language%29&quot; title=&quot;C (programming language)&quot;&gt;C programming language&lt;/a&gt; and originally named &quot;&lt;i&gt;C with Classes&lt;/i&gt;&quot;. It was renamed to &lt;i&gt;C++&lt;/i&gt; in 1983.&lt;/p&gt; &lt;p&gt;C++ is widely used in the software industry. Some of its application domains include systems software, application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games. Several groups provide both free and proprietary C++ &lt;a href=&quot;http://en.wikipedia.org/wiki/Compiler&quot; title=&quot;Compiler&quot;&gt;compiler&lt;/a&gt; software, including the &lt;a href=&quot;http://en.wikipedia.org/wiki/GNU_Compiler_Collection&quot; title=&quot;GNU Compiler Collection&quot;&gt;GNU Project&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B&quot; title=&quot;Microsoft Visual C++&quot; class=&quot;mw-redirect&quot;&gt;Microsoft&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler&quot; title=&quot;Intel C++ Compiler&quot;&gt;Intel&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Borland_C%2B%2B_Builder&quot; title=&quot;Borland C++ Builder&quot; class=&quot;mw-redirect&quot;&gt;Borland&lt;/a&gt; and others.&lt;/p&gt; &lt;p&gt;The language began as enhancements to &lt;i&gt;C&lt;/i&gt;, first adding &lt;a href=&quot;http://en.wikipedia.org/wiki/Class_%28computer_science%29&quot; title=&quot;Class (computer science)&quot;&gt;classes&lt;/a&gt;, then &lt;a href=&quot;http://en.wikipedia.org/wiki/Virtual_functions&quot; title=&quot;Virtual functions&quot; class=&quot;mw-redirect&quot;&gt;virtual functions&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Operator_overloading&quot; title=&quot;Operator overloading&quot;&gt;operator overloading&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Multiple_inheritance&quot; title=&quot;Multiple inheritance&quot;&gt;multiple inheritance&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Template_%28programming%29&quot; title=&quot;Template (programming)&quot;&gt;templates&lt;/a&gt;, and &lt;a href=&quot;http://en.wikipedia.org/wiki/Exception_handling&quot; title=&quot;Exception handling&quot;&gt;exception handling&lt;/a&gt; among other features. After years of development, the C++ programming language standard was ratified in 1998 as &lt;i&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/ISO/IEC_14882&quot; title=&quot;ISO/IEC 14882&quot; class=&quot;mw-redirect&quot;&gt;ISO/IEC 14882&lt;/a&gt;:1998&lt;/i&gt;. That standard is still current, but is amended by the 2003 technical corrigendum, &lt;i&gt;ISO/IEC 14882:2003&lt;/i&gt;. The next standard version (known informally as &lt;a href=&quot;http://en.wikipedia.org/wiki/C%2B%2B0x&quot; title=&quot;C++0x&quot;&gt;C++0x&lt;/a&gt;) is in development.&lt;/p&gt; &lt;p&gt;C++ is a &lt;a href=&quot;http://en.wikipedia.org/wiki/Type_system#Static_typing&quot; title=&quot;Type system&quot;&gt;statically typed&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Free-form_language&quot; title=&quot;Free-form language&quot;&gt;free-form&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Multi-paradigm_programming_language&quot; title=&quot;Multi-paradigm programming language&quot;&gt;multi-paradigm&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Compiled_language&quot; title=&quot;Compiled language&quot;&gt;compiled language&lt;/a&gt; where compilation creates &lt;a href=&quot;http://en.wikipedia.org/wiki/Machine_code&quot; title=&quot;Machine code&quot;&gt;machine code&lt;/a&gt; for a target machine hardware.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037258391&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000037258391&amp;pubid=21000000000381344&quot; border=0 alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802006504&amp;pubid=21000000000381344&quot;&gt;$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000037236790&amp;pubid=21000000000381344&quot;&gt;Sears Deal of the Day: Thule Car Top Carrier, Quest&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000000033452583&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000000033452583&amp;pubid=21000000000381344&quot; border=0 alt=&quot;Wholesale Fleece Blankets&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023682&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023682&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world! &quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802022320&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802022320&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802034205&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802034205&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802037515&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802037515&amp;pubid=21000000000381344&quot; border=0 alt=&quot;504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802021841&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802021841&amp;pubid=21000000000381344&quot; border=0 alt=&quot;502239_Brand names, bargain prices at shoezoo.com. If you don&amp;#39;t love your new shoes, return them for free!&quot;&gt;&lt;/a&gt; &lt;!-- shoe zoo --&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://gan.doubleclick.net/gan_click?lid=41000613802023654&amp;pubid=21000000000381344&quot;&gt;&lt;img src=&quot;http://gan.doubleclick.net/gan_impression?lid=41000613802023654&amp;pubid=21000000000381344&quot; border=0 alt=&quot;400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentcplusplus.blogspot.com/feeds/3725622276823122993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/c-plus-plus-intro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/3725622276823122993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3627169942682263002/posts/default/3725622276823122993'/><link rel='alternate' type='text/html' href='http://studentcplusplus.blogspot.com/2009/04/c-plus-plus-intro.html' title='C plus plus intro'/><author><name>King Drame</name><uri>http://www.blogger.com/profile/06656397397944755814</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>