<?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: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-5651519061817228881</id><updated>2011-04-21T11:49:03.266-07:00</updated><title type='text'>code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-1566697121547616061</id><published>2008-01-24T07:25:00.000-08:00</published><updated>2008-01-24T07:27:22.090-08:00</updated><title type='text'>Operators in C and C++</title><content type='html'>&lt;span style="color:#3333ff;"&gt;Operators in C and C++&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Operator precedence&lt;br /&gt;The following is a table that lists the &lt;/span&gt;&lt;a title="Order of operations" href="http://en.wikipedia.org/wiki/Order_of_operations"&gt;&lt;span style="color:#3333ff;"&gt;precedence&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; and &lt;/span&gt;&lt;a title="Operator associativity" href="http://en.wikipedia.org/wiki/Operator_associativity"&gt;&lt;span style="color:#3333ff;"&gt;associativity&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; of all the operators in the C++ programming language. Operators are listed top to bottom in descending precedence and operators that are on the same row are evaluated with the same precedence, in the given direction.&lt;br /&gt;The syntax of expressions in C and C++ is specified by a &lt;/span&gt;&lt;a title="Context-free grammar" href="http://en.wikipedia.org/wiki/Context-free_grammar"&gt;&lt;span style="color:#3333ff;"&gt;context-free grammar&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;. The table given here has been inferred from the grammar.&lt;br /&gt;A precedence table, while mostly adequate, cannot resolve a few details. In particular, note that the &lt;/span&gt;&lt;a title="Ternary operator" href="http://en.wikipedia.org/wiki/Ternary_operator"&gt;&lt;span style="color:#3333ff;"&gt;ternary operator&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; allows any arbitrary expression as its middle operand, despite being listed as having higher precedence than the assignment and comma operators. Thus a ? b , c : d is interpreted as a ? (b, c) : d, and not as the meaningless (a ? b), (c : d). Also, note that the immediate, unparenthesized result of a C cast expression cannot be the operand of sizeof. Therefore, sizeof (int) * x is interpreted as (sizeof(int)) * x and not sizeof ((int) *x).&lt;br /&gt;Operator(s)&lt;br /&gt;Description&lt;br /&gt;Associativity&lt;br /&gt;::&lt;br /&gt;Scope resolution (C++ only)&lt;br /&gt;Left-to-Right&lt;br /&gt;++ --()[].-&gt;&lt;br /&gt;Postfix increment and decrementFunction callArray subscriptingElement selection by referenceElement selection through pointer&lt;br /&gt;++ --+ -! ~(type)*&amp;amp;sizeofnew new[]delete delete[]&lt;br /&gt;Prefix increment and decrementUnary plus and minusLogical NOT and bitwise NOTType castIndirection (dereference)Address-of (reference)Size-ofDynamic memory allocation (C++ only)Dynamic memory deallocation (C++ only)&lt;br /&gt;Right-to-Left&lt;br /&gt;.* -&gt;*&lt;br /&gt;Pointer to member (C++ only)&lt;br /&gt;Left-to-Right&lt;br /&gt;* / %&lt;br /&gt;Multiplication, division, and modulus (remainder)&lt;br /&gt;+ -&lt;br /&gt;Addition and subtraction&lt;br /&gt;&lt;&lt; &gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;a title="Bitwise operation" href="http://en.wikipedia.org/wiki/Bitwise_operation"&gt;&lt;span style="color:#3333ff;"&gt;Bitwise&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; left shift and right shift&lt;br /&gt;&lt; &lt;=&gt; &gt;=&lt;br /&gt;&lt;/span&gt;&lt;a title="Relational operator" href="http://en.wikipedia.org/wiki/Relational_operator"&gt;&lt;span style="color:#3333ff;"&gt;Relational&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; “less than” and “less than or equal to”Relational “greater than” and “greater than or equal to”&lt;br /&gt;== !=&lt;br /&gt;Relational “equal to” and “not equal to”&lt;br /&gt;&amp;amp;&lt;br /&gt;Bitwise AND&lt;br /&gt;^&lt;br /&gt;Bitwise XOR (exclusive or)&lt;br /&gt;&lt;br /&gt;Bitwise OR (inclusive or)&lt;br /&gt;&amp;amp;&amp;amp;&lt;br /&gt;Logical AND&lt;br /&gt;&lt;br /&gt;Logical OR&lt;br /&gt;c?t:f&lt;br /&gt;&lt;/span&gt;&lt;a title="Ternary operator" href="http://en.wikipedia.org/wiki/Ternary_operator"&gt;&lt;span style="color:#3333ff;"&gt;Ternary&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; conditional (see &lt;/span&gt;&lt;a title="?:" href="http://en.wikipedia.org/wiki/%3F:"&gt;&lt;span style="color:#3333ff;"&gt;?:&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;)&lt;br /&gt;Right-to-Left&lt;br /&gt;=+= -=*= /= %=&lt;&lt;= &gt;&gt;=&amp;amp;= ^= =&lt;br /&gt;Direct assignmentAssignment by sum and differenceAssignment by product, dividend, and remainderAssignment by bitwise left shift and right shiftAssignment by bitwise AND, XOR, and OR&lt;br /&gt;throw&lt;br /&gt;Throw operator (exceptions throwing, C++ only)&lt;br /&gt;Not available&lt;br /&gt;,&lt;br /&gt;&lt;/span&gt;&lt;a title="Comma operator" href="http://en.wikipedia.org/wiki/Comma_operator"&gt;&lt;span style="color:#3333ff;"&gt;Comma&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Left-to-Right&lt;br /&gt;&lt;/span&gt;&lt;a id="Table" name="Table"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: Table" href="http://en.wikipedia.org/w/index.php?title=Operators_in_C_and_C%2B%2B&amp;amp;action=edit&amp;amp;section=2"&gt;&lt;span style="color:#3333ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;] &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-1566697121547616061?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/1566697121547616061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=1566697121547616061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/1566697121547616061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/1566697121547616061'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/operators-in-c-and-c.html' title='Operators in C and C++'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-9159980687492771504</id><published>2008-01-24T07:24:00.000-08:00</published><updated>2008-01-24T07:25:06.727-08:00</updated><title type='text'>Impulse C Overview</title><content type='html'>&lt;span style="color:#3333ff;"&gt;Impulse C includes a &lt;/span&gt;&lt;a title="Compiler" href="http://en.wikipedia.org/wiki/Compiler"&gt;&lt;span style="color:#3333ff;"&gt;compiler&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; and related function library intended for development of FPGA-based applications. Impulse C is compatible with standard &lt;/span&gt;&lt;a title="ANSI C" href="http://en.wikipedia.org/wiki/ANSI_C"&gt;&lt;span style="color:#3333ff;"&gt;ANSI C&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;, allowing standard C tools to be used for designing and debugging applications targeting FPGAs. The Impulse C compiler accepts a subset of C and generates FPGA hardware in the form of &lt;/span&gt;&lt;a title="Hardware description language" href="http://en.wikipedia.org/wiki/Hardware_description_language"&gt;&lt;span style="color:#3333ff;"&gt;Hardware Description Language (HDL)&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; files. Impulse C allows embedded systems designers and software programmers to target FPGA devices for C-language application acceleration.&lt;br /&gt;Impulse C is distinct from standard C in that it provides a parallel &lt;/span&gt;&lt;a title="Programming model" href="http://en.wikipedia.org/wiki/Programming_model"&gt;&lt;span style="color:#3333ff;"&gt;programming model&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; for mixed processor and FPGA platforms. For this purpose, Impulse C includes extensions to C, in the form of a small set of functions and datatypes, allowing applications written in standard C to be mapped efficiently onto coarse-grained parallel architectures that may include standard processors along with programmable FPGA hardware.&lt;br /&gt;The Impulse C tools include hardware/software co-simulation tools as well as C-to-&lt;/span&gt;&lt;a title="Register transfer level" href="http://en.wikipedia.org/wiki/Register_transfer_level"&gt;&lt;span style="color:#3333ff;"&gt;RTL&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; scheduling/optimizing technology used to map application elements to hardware via FPGA &lt;/span&gt;&lt;a title="Logic synthesis" href="http://en.wikipedia.org/wiki/Logic_synthesis"&gt;&lt;span style="color:#3333ff;"&gt;logic synthesis&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; tools.&lt;br /&gt;&lt;/span&gt;&lt;a class="image" title="Impulse C v2.20 tools" href="http://en.wikipedia.org/wiki/Image:ImpulseC.JPG"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="internal" title="Enlarge" href="http://en.wikipedia.org/wiki/Image:ImpulseC.JPG"&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;Impulse C v2.20 tools&lt;br /&gt;&lt;/span&gt;&lt;a id="Programming_Model" name="Programming_Model"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: Programming Model" href="http://en.wikipedia.org/w/index.php?title=Impulse_C&amp;amp;action=edit&amp;amp;section=2"&gt;&lt;span style="color:#3333ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt;] Programming Model&lt;br /&gt;Impulse C supports a variant of the &lt;/span&gt;&lt;a title="Communicating sequential processes" href="http://en.wikipedia.org/wiki/Communicating_sequential_processes"&gt;&lt;span style="color:#3333ff;"&gt;Communicating Sequential Processes (CSP)&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; programming model, while remaining compatible with standard C tools such as debuggers and profilers. Impulse C is intended to simplify the creation of highly parallel algorithms, including mixed software/hardware algorithms, through the use of well-defined data communication, message passing and synchronization mechanisms. Impulse C is designed for dataflow-oriented, streaming applications, but is also designed to support alternate programming models including the use of shared memory as a communication mechanism.&lt;br /&gt;In an Impulse C streaming application, hardware and software processes communicate primarily through buffered data streams that are implemented directly in hardware. This buffering of data, which is implemented using dual-clock &lt;/span&gt;&lt;a title="FIFO" href="http://en.wikipedia.org/wiki/FIFO"&gt;&lt;span style="color:#3333ff;"&gt;FIFOs&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3333ff;"&gt; generated by the compiler, makes it possible to write parallel applications at a relatively high level of abstraction, without the cycle-by-cycle synchronization that would otherwise be required.&lt;br /&gt;Using Impulse C, an application can be partitioned to create a multiple-process implementation that is partitioned into hardware and software components, or implemented entirely within an FPGA device. For example, an image filtering application could be described using Impulse C as a collection of parallel, pipelined processes, each of which has been described using one or more C subroutines.&lt;br /&gt;On the software side of the application, for example in an embedded FPGA processor, Impulse C library functions are used to open and close data streams, read or write data on the streams and, if desired, send status messages or poll for results. For processor-to-FPGA communications, stream reads and writes can be specified as operations that take advantage of FPGA-specific, internal or external bus interfaces.&lt;br /&gt;On the hardware side of the application, Impulse C library functions and other C statements are compiled to generate equivalent, parallel hardware implementations in the form of synthesizable HDL files. These files are processed by FPGA tools to create FPGA hardware bitmaps.&lt;br /&gt;At the heart of the Impulse C streaming programming model are processes and streams. Processes are independently synchronized, concurrently executing segments of an application. Hardware processes are written using a subset of standard C and perform the work of an application by accepting data, performing computations and generating outputs. In a typical application, data flows from process to process by means of buffered streams, or in some cases by means of messages and/or shared memories. The characteristics of each stream, including the width and depth of the generated FIFOs, may be specified in the C application.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-9159980687492771504?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/9159980687492771504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=9159980687492771504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/9159980687492771504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/9159980687492771504'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/impulse-c-overview.html' title='Impulse C Overview'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-7247095271009326244</id><published>2008-01-24T07:22:00.000-08:00</published><updated>2008-01-24T07:23:05.281-08:00</updated><title type='text'>Parsing and processing C++ source code</title><content type='html'>&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;It is relatively difficult to write a good C++ &lt;/span&gt;&lt;/strong&gt;&lt;a title="Parser" href="http://en.wikipedia.org/wiki/Parser"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;parser&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; with classic parsing algorithms such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="LALR parser" href="http://en.wikipedia.org/wiki/LALR_parser"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;LALR(1)&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-2"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[5]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; This is partly because the C++ grammar is not LALR. Because of this, there are very few tools for analyzing or performing non-trivial transformations (e.g., &lt;/span&gt;&lt;/strong&gt;&lt;a title="Refactoring" href="http://en.wikipedia.org/wiki/Refactoring"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;refactoring&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;) of existing code. One way to handle this difficulty is to choose a different syntax, such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="Significantly Prettier and Easier C++ Syntax" href="http://en.wikipedia.org/wiki/Significantly_Prettier_and_Easier_C%2B%2B_Syntax"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Significantly Prettier and Easier C++ Syntax&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, which is LALR(1) parsable. More powerful parsers, such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="GLR parser" href="http://en.wikipedia.org/wiki/GLR_parser"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;GLR parsers&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, can be substantially simpler (though slower).&lt;br /&gt;Parsing (in the literal sense of producing a syntax tree) is not the most difficult problem in building a C++ processing tool. Such tools must also have the same understanding of the meaning of the identifiers in the program as a compiler might have. Practical systems for processing C++ must then not only parse the source text, but be able to resolve for each identifier precisely which definition applies (e.g. they must correctly handle C++'s complex scoping rules) and what its type is, as well as the types of larger expressions.&lt;br /&gt;Finally, a practical C++ processing tool must be able to handle the variety of C++ dialects used in practice (such as that supported by the &lt;/span&gt;&lt;/strong&gt;&lt;a title="GNU C compiler" href="http://en.wikipedia.org/wiki/GNU_C_compiler"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;GNU C compiler&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; and that of Microsoft's &lt;/span&gt;&lt;/strong&gt;&lt;a title="Visual C++" href="http://en.wikipedia.org/wiki/Visual_C%2B%2B"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Visual C++&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;) and implement appropriate analyzers, source code transformers, and regenerate source text. Combining advanced parsing algorithms such as GLR with symbol table construction and program transformation machinery can enable the construction of arbitrary C++ tools.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Problems_and_controversies" name="Problems_and_controversies"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Problems and controversies" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=22"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;] Problems and controversies&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Standards_compliance" name="Standards_compliance"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Standards compliance" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=23"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;] Standards compliance&lt;br /&gt;Producing a reasonably standards-compliant C++ compiler has proven to be a difficult task for compiler vendors in general. For many years, different C++ compilers implemented the C++ language to different levels of compliance to the standard, and their implementations varied widely in some areas such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="Partial template specialization" href="http://en.wikipedia.org/wiki/Partial_template_specialization"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;partial template specialization&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;. Recent releases of most popular C++ compilers support almost all of the C++ 1998 standard.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-3"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[6]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;One particular point of contention is the export keyword, intended to allow template definitions to be separated from their declarations. The first compiler to implement export was &lt;/span&gt;&lt;/strong&gt;&lt;a title="Comeau C/C++" href="http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Comeau C/C++&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, in early 2003 (5 years after the release of the standard); in 2004, the beta compiler of &lt;/span&gt;&lt;/strong&gt;&lt;a title="Borland C++ Builder X" href="http://en.wikipedia.org/wiki/Borland_C%2B%2B_Builder_X"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Borland C++ Builder X&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; was also released with export. Both of these compilers are based on the &lt;/span&gt;&lt;/strong&gt;&lt;a class="new" title="Edison Design Group" href="http://en.wikipedia.org/w/index.php?title=Edison_Design_Group&amp;amp;action=edit"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;EDG&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; C++ front end. It should also be noted that many C++ books provide example code using the keyword export (for example, Beginning ANSI C++ by Ivor Horton) which will not compile in most compilers, but there is no reference to the problem with the keyword export mentioned. Other compilers such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="GNU Compiler Collection" href="http://en.wikipedia.org/wiki/GNU_Compiler_Collection"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;GCC&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; do not support it at all. &lt;/span&gt;&lt;/strong&gt;&lt;a title="Herb Sutter" href="http://en.wikipedia.org/wiki/Herb_Sutter"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Herb Sutter&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, secretary of the C++ standards committee, recommended that export be removed from future versions of the C++ standard, &lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-4"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[7]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; but finally the decision was made to retain it.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-5"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[8]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;In order to give compiler vendors greater freedom, the C++ standards committee decided not to dictate the implementation of &lt;/span&gt;&lt;/strong&gt;&lt;a title="Name mangling" href="http://en.wikipedia.org/wiki/Name_mangling"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;name mangling&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Exception handling" href="http://en.wikipedia.org/wiki/Exception_handling"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;exception handling&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, and other implementation-specific features. The downside of this decision is that &lt;/span&gt;&lt;/strong&gt;&lt;a title="Object code" href="http://en.wikipedia.org/wiki/Object_code"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;object code&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; produced by different &lt;/span&gt;&lt;/strong&gt;&lt;a title="Compiler" href="http://en.wikipedia.org/wiki/Compiler"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;compilers&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; is expected to be incompatible. There are, however, third party standards for particular machines or &lt;/span&gt;&lt;/strong&gt;&lt;a title="Operating system" href="http://en.wikipedia.org/wiki/Operating_system"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;operating systems&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; which attempt to standardize compilers on those platforms (for example C++ ABI&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-6"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[9]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;); some compilers adopt a secondary standard for these items.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Incompatibility with C" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=25"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;] Incompatibility with C&lt;br /&gt;For more details on this topic, see &lt;/span&gt;&lt;/strong&gt;&lt;a title="Compatibility of C and C++" href="http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Compatibility of C and C++&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;.&lt;br /&gt;C++ is often considered to be a superset of C, but this is not strictly true.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-superset"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;[13]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt; Most C code can easily be made to compile correctly in C++, but there are a few differences that cause some valid C code to be invalid in C++, or to behave differently in C++.&lt;br /&gt;One commonly encountered difference is that C allows implicit conversion from void* to other pointer types, but C++ does not. So, the following is valid C code:&lt;br /&gt;int *i = malloc(sizeof(int) * 5); /* Implicit conversion from void* to int* */&lt;br /&gt;... but to make it work in both C and C++ one would need to use an explicit cast:&lt;br /&gt;int *i = (int *) malloc(sizeof(int) * 5);&lt;br /&gt;...and in C++-only code, the static cast is recommended:&lt;br /&gt;int *i = static_cast&lt;int*&gt;(malloc(sizeof(int) * 5));&lt;br /&gt;C++ also makes a small change in the behavior of the "conditional" operator. Consider:&lt;br /&gt;// The interpretation of the following expression is different in C and C++&lt;br /&gt;bool flag = xxxx;&lt;br /&gt;int a;&lt;br /&gt;flag ? a=2 : a=3;&lt;br /&gt;&lt;br /&gt;// In C the precedence of ? and : are strictly higher than all assignment operators&lt;br /&gt;// so the equation is grouped as follows, because ?: beats =&lt;br /&gt;(flag ? (a=2) : a) = 3;&lt;br /&gt;&lt;br /&gt;// The C++ grammar allows an assignment as the else-part, so it's interpreted as:&lt;br /&gt;( flag ? (a=2) : (a=3) );&lt;br /&gt;So in essence, the the "?" and ":" operators have different precedence levels in C++, the "?" placed higher than assignment operators, and the ":" is lower.&lt;br /&gt;Another common portability issue is that C++ defines many new keywords, such as new and class, that may be used as identifiers (e.g. variable names) in a C program.&lt;br /&gt;Some incompatibilities have been removed by the latest &lt;/span&gt;&lt;/strong&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_%28programming_language%29#C99"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;(C99) C standard&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;, which now supports C++ features such as // comments and mixed declarations and code. However, C99 introduced a number of new features that C++ does not support (such as variable-length arrays, native complex-number types, and compound literals), so the languages may be diverging more than they are converging. However, at least some of the new C99 features will likely be included in the next version of the C++ standard, &lt;/span&gt;&lt;/strong&gt;&lt;a title="C++0x" href="http://en.wikipedia.org/wiki/C%2B%2B0x"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;C++0x&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;.&lt;br /&gt;In order to intermix C and C++ code, any C code which is to be called from/used in C++ must be declared with C linkage by placing it within an extern "C" { ... } block.&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-7247095271009326244?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/7247095271009326244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=7247095271009326244' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/7247095271009326244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/7247095271009326244'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/parsing-and-processing-c-source-code.html' title='Parsing and processing C++ source code'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-6485386640860963210</id><published>2008-01-24T07:20:00.000-08:00</published><updated>2008-01-24T07:21:37.694-08:00</updated><title type='text'>Inheritance</title><content type='html'>&lt;a title="Inheritance (computer science)" href="http://en.wikipedia.org/wiki/Inheritance_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Inheritance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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 "inheritance". The other two forms are much less frequently used. If the access specifier is omitted, inheritance is assumed to be private for a class base and public for a struct base. Base classes may be declared as virtual; this is called &lt;/span&gt;&lt;/strong&gt;&lt;a title="Virtual inheritance" href="http://en.wikipedia.org/wiki/Virtual_inheritance"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;virtual inheritance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;/span&gt;&lt;/strong&gt;&lt;a title="Multiple inheritance" href="http://en.wikipedia.org/wiki/Multiple_inheritance"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;multiple inheritance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Multiple inheritance" href="http://en.wikipedia.org/wiki/Multiple_inheritance"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Multiple inheritance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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 "Flying Cat" class can inherit from both "Cat" and "Flying Mammal". Some other languages, such as &lt;/span&gt;&lt;/strong&gt;&lt;a title="Java (programming language)" href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Java&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; or &lt;/span&gt;&lt;/strong&gt;&lt;a title="C Sharp (programming language)" href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C#&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, accomplish something similar (although more limited) by allowing inheritance of multiple &lt;/span&gt;&lt;/strong&gt;&lt;a title="Interface (computer science)" href="http://en.wikipedia.org/wiki/Interface_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;interfaces&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Polymorphism" name="Polymorphism"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Polymorphism" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=13"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Polymorphism&lt;br /&gt;See also: &lt;/span&gt;&lt;/strong&gt;&lt;a title="Polymorphism in object-oriented programming" href="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Polymorphism in object-oriented programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Type polymorphism" href="http://en.wikipedia.org/wiki/Type_polymorphism"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Polymorphism&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; enables one common interface for many implementations, and for objects to act differently under different circumstances.&lt;br /&gt;C++ supports several kinds of static (&lt;/span&gt;&lt;/strong&gt;&lt;a title="Compile-time" href="http://en.wikipedia.org/wiki/Compile-time"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;compile-time&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;) and dynamic (&lt;/span&gt;&lt;/strong&gt;&lt;a title="Run-time" href="http://en.wikipedia.org/wiki/Run-time"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;run-time&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;) &lt;/span&gt;&lt;/strong&gt;&lt;a title="Polymorphism (computer science)" href="http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;polymorphism&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. Compile-time polymorphism does not allow for certain run-time decisions, while run-time polymorphism typically incurs a performance penalty.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Static_polymorphism" name="Static_polymorphism"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Static polymorphism" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=14"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Static polymorphism&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Function_overloading" name="Function_overloading"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Function overloading" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=15"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Function overloading&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Function overloading" href="http://en.wikipedia.org/wiki/Function_overloading"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Function overloading&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;/span&gt;&lt;/strong&gt;&lt;a title="Parameter (computer science)" href="http://en.wikipedia.org/wiki/Parameter_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;formal parameters&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Default_arguments" name="Default_arguments"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Default arguments" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=16"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Default arguments&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Default arguments" href="http://en.wikipedia.org/wiki/Default_arguments"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Default arguments&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; are used when defining a different function is not needed when supplying a default value for an argument will suffice.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Class_and_function_templates" name="Class_and_function_templates"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Class and function templates" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=17"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Class and function templates&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming#Templates"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Templates&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; in C++ provide a sophisticated mechanism for writing generic, polymorphic code. In particular, through the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Curiously Recurring Template Pattern" href="http://en.wikipedia.org/wiki/Curiously_Recurring_Template_Pattern"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Curiously Recurring Template Pattern&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; it's possible to implement a form of static polymorphism that closely mimics the syntax for overriding virtual methods (a dynamic polymorphism technique described &lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#Virtual_member_functions"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;below&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;). Since C++ templates are type-aware and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Turing-complete" href="http://en.wikipedia.org/wiki/Turing-complete"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Turing-complete&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; they can also be used to let the compiler resolve recursive conditionals and generate substantial programs through &lt;/span&gt;&lt;/strong&gt;&lt;a title="Template metaprogramming" href="http://en.wikipedia.org/wiki/Template_metaprogramming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;template metaprogramming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Dynamic_polymorphism" name="Dynamic_polymorphism"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Dynamic polymorphism" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=18"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Dynamic polymorphism&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Inheritance_2" name="Inheritance_2"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Inheritance" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=19"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Inheritance&lt;br /&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;br /&gt;C++ also provides a dynamic_cast 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;/span&gt;&lt;/strong&gt;&lt;a title="Run-time type information" href="http://en.wikipedia.org/wiki/Run-time_type_information"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;run-time type information&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (RTTI). Objects known to be of a certain specific type can also be cast to that type with static_cast, a purely compile-time construct which is faster and does not require RTTI.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Virtual_member_functions" name="Virtual_member_functions"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Virtual member functions" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=20"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Virtual member functions&lt;br /&gt;Ordinarily when a method in a derived class &lt;/span&gt;&lt;/strong&gt;&lt;a title="Method overriding (programming)" href="http://en.wikipedia.org/wiki/Method_overriding_%28programming%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;overrides&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; a method in a base class, the method to call is determined by the type of the object. A given method is overridden when there exists no difference, in the number or type of parameters, between two or more definitions of that method. 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;/span&gt;&lt;/strong&gt;&lt;a title="Dynamic dispatch" href="http://en.wikipedia.org/wiki/Dynamic_dispatch"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;dynamic dispatch&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. &lt;/span&gt;&lt;/strong&gt;&lt;a title="Virtual functions" href="http://en.wikipedia.org/wiki/Virtual_functions"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Virtual member functions&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; or methods 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;/span&gt;&lt;/strong&gt;&lt;a title="Virtual function table" href="http://en.wikipedia.org/wiki/Virtual_function_table"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;virtual function tables&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. If the object type is known, this may be bypassed by prepending a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Fully qualified name" href="http://en.wikipedia.org/wiki/Fully_qualified_name"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;fully qualified class name&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; before the function call, but in general calls to virtual functions are resolved at run time.&lt;br /&gt;In addition to standard member functions, operator overloads and destructors can also 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, can not be virtual. Nontheless 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 Clone() (or similar) method and declare that as virtual. The Clone() method creates and returns a copy of the derived class when called.&lt;br /&gt;A member function can also be made "pure virtual" by appending it with = 0 after the closing bracket and before the semicolon. Objects can not 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 override it (and all other pure virtual functions) with a non-pure virtual function for objects to be created from the derived class. 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;br /&gt;An example:&lt;br /&gt;#include &lt;iostream&gt;&lt;br /&gt;&lt;br /&gt;class Bird // the "generic" base class&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;virtual void OutputName() {std::cout &lt;&lt; "a bird";}&lt;br /&gt;virtual ~Bird() {}&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;class Swan : public Bird // Swan derives from Bird&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;void OutputName() {std::cout &lt;&lt; "a swan";} // overrides virtual function&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;Swan mySwan; // Creates a swan.&lt;br /&gt;&lt;br /&gt;Bird* myBird = &amp;mySwan; // Declares a pointer to a generic Bird,&lt;br /&gt;// and sets it pointing to a newly created Swan.&lt;br /&gt;&lt;br /&gt;myBird-&gt;OutputName(); // This will output "a swan", not "a bird".&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;This example program makes use of virtual functions, polymorphism, and inheritance to derive new, more specific objects from a base class. In this case, the base class is a Bird, and the more specific Swan is made.&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-6485386640860963210?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/6485386640860963210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=6485386640860963210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6485386640860963210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6485386640860963210'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/inheritance.html' title='Inheritance'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-8002921548466350898</id><published>2008-01-24T07:19:00.000-08:00</published><updated>2008-01-24T07:20:05.473-08:00</updated><title type='text'>Operators and operator overloading</title><content type='html'>&lt;strong&gt;C++ provides more than &lt;/strong&gt;&lt;a title="Operators in C and C++" href="http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B"&gt;&lt;strong&gt;30 operators&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, covering basic arithmetic, bit manipulation, indirection, comparisons, logic and more. Almost all operators can be &lt;/strong&gt;&lt;a title="Operator overloading" href="http://en.wikipedia.org/wiki/Operator_overloading"&gt;&lt;strong&gt;overloaded&lt;/strong&gt;&lt;/a&gt;&lt;strong&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;/strong&gt;&lt;a title="Domain specific language" href="http://en.wikipedia.org/wiki/Domain_specific_language"&gt;&lt;strong&gt;domain specific language&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;. As a simple example, a class that represents a matrix could overload the multiplication (*) and other &lt;/strong&gt;&lt;a title="Arithmetic" href="http://en.wikipedia.org/wiki/Arithmetic"&gt;&lt;strong&gt;arithmetic&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; operators, allowing it to be treated by application code similarly to the standard numerical types.:&lt;br /&gt;matrix A, B;&lt;br /&gt;matrix C = A * B;&lt;br /&gt;The overloadable operators are also an essential part of many advanced C++ programming techniques, such as &lt;/strong&gt;&lt;a title="Smart pointer" href="http://en.wikipedia.org/wiki/Smart_pointer"&gt;&lt;strong&gt;smart pointers&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;.&lt;br /&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;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Templates&lt;br /&gt;See also: &lt;/strong&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming"&gt;&lt;strong&gt;generic programming&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; and &lt;/strong&gt;&lt;a title="Template metaprogramming" href="http://en.wikipedia.org/wiki/Template_metaprogramming"&gt;&lt;strong&gt;template metaprogramming&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;Templates are different from macros: while both of these compile-time language features can be used to produce conditional compilation, templates are not restricted to lexical substitution. Templates have an awareness 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;/strong&gt;&lt;a title="Polymorphism in object-oriented programming" href="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming"&gt;&lt;strong&gt;polymorphism&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; (see below) and &lt;/strong&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming"&gt;&lt;strong&gt;generic programming&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;. For example, a template replacing the common, but dangerous, macro #define max(x,y) ((x)&gt;(y)?(x):(y)):&lt;br /&gt;template &lt;typename&gt;&lt;br /&gt;const T&amp;amp; max(const T&amp;amp; x, const T&amp;amp; y)&lt;br /&gt;{&lt;br /&gt;return x &gt; y ? x : y;&lt;br /&gt;}&lt;br /&gt;This can be found in the algorithm header as std::max(). Traditionally the keyword class may also be used in place of typename.&lt;br /&gt;In addition, templates are a compile time mechanism in C++ which is &lt;/strong&gt;&lt;a title="Turing-complete" href="http://en.wikipedia.org/wiki/Turing-complete"&gt;&lt;strong&gt;Turing-complete&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, meaning that any computation expressible by a computer program can be computed, in some form, by a &lt;/strong&gt;&lt;a title="Template metaprogramming" href="http://en.wikipedia.org/wiki/Template_metaprogramming"&gt;&lt;strong&gt;template metaprogram&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; prior to runtime.&lt;br /&gt;In summary, defining a template for a function or class is the equivalent of defining a function or class for each type that can be used as an argument, but does not require prior knowledge of which types will be used.&lt;br /&gt;&lt;/strong&gt;&lt;a id="Objects" name="Objects"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;a title="Edit section: Objects" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=10"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;] Objects&lt;br /&gt;Main article: &lt;/strong&gt;&lt;a title="C++ structures and classes" href="http://en.wikipedia.org/wiki/C%2B%2B_structures_and_classes"&gt;&lt;strong&gt;C++ structures and classes&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;C++ introduces some &lt;/strong&gt;&lt;a title="Object-oriented" href="http://en.wikipedia.org/wiki/Object-oriented"&gt;&lt;strong&gt;object-oriented&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; (OO) features to C. It offers &lt;/strong&gt;&lt;a title="Class (computer science)" href="http://en.wikipedia.org/wiki/Class_%28computer_science%29"&gt;&lt;strong&gt;classes&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, which provide the four features commonly present in OO (and some non-OO) languages: &lt;/strong&gt;&lt;a title="Abstraction (computer science)" href="http://en.wikipedia.org/wiki/Abstraction_%28computer_science%29"&gt;&lt;strong&gt;abstraction&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;a title="Information hiding" href="http://en.wikipedia.org/wiki/Information_hiding"&gt;&lt;strong&gt;encapsulation&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;a title="Inheritance (object-oriented programming)" href="http://en.wikipedia.org/wiki/Inheritance_%28object-oriented_programming%29"&gt;&lt;strong&gt;inheritance&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; and &lt;/strong&gt;&lt;a title="Polymorphism (computer science)" href="http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29"&gt;&lt;strong&gt;polymorphism&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;. Objects are instances of classes created at runtime. Think of the class as a template from which many different individual objects may be generated as a program runs.&lt;br /&gt;&lt;/strong&gt;&lt;a id="Encapsulation" name="Encapsulation"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;a title="Edit section: Encapsulation" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=11"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;] Encapsulation&lt;br /&gt;&lt;/strong&gt;&lt;a title="Information hiding" href="http://en.wikipedia.org/wiki/Information_hiding"&gt;&lt;strong&gt;Encapsulation&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; is the grouping together of data and functionality. 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 ("friends"). A protected member is accessible to members of classes that inherit from the class in addition to the class itself and any friends.&lt;br /&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 also 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;/strong&gt;&lt;a title="Modularity (programming)" href="http://en.wikipedia.org/wiki/Modularity_%28programming%29"&gt;&lt;strong&gt;modular programming&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;.&lt;br /&gt;It is generally considered good practice to make all &lt;/strong&gt;&lt;a title="Data" href="http://en.wikipedia.org/wiki/Data"&gt;&lt;strong&gt;data&lt;/strong&gt;&lt;/a&gt;&lt;strong&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;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-8002921548466350898?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/8002921548466350898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=8002921548466350898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8002921548466350898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8002921548466350898'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/operators-and-operator-overloading.html' title='Operators and operator overloading'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-3947185731328471801</id><published>2008-01-24T07:17:00.000-08:00</published><updated>2008-01-24T07:18:47.223-08:00</updated><title type='text'>C++</title><content type='html'>&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C++ (&lt;/span&gt;&lt;/strong&gt;&lt;a title="Help:Pronunciation" href="http://en.wikipedia.org/wiki/Help:Pronunciation"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;pronounced&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; /ˌsiːˌplʌsˈplʌs/) is a general-purpose &lt;/span&gt;&lt;/strong&gt;&lt;a title="Programming language" href="http://en.wikipedia.org/wiki/Programming_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;programming language&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. C++ is regarded as a mid-level language, as it comprises a combination of both &lt;/span&gt;&lt;/strong&gt;&lt;a title="High-level programming language" href="http://en.wikipedia.org/wiki/High-level_programming_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;high-level&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Low-level programming language" href="http://en.wikipedia.org/wiki/Low-level_programming_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;low-level&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; language features.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-0"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[1]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; It is a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Type system" href="http://en.wikipedia.org/wiki/Type_system"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;statically typed&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Free-form language" href="http://en.wikipedia.org/wiki/Free-form_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;free-form&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Multi-paradigm programming language" href="http://en.wikipedia.org/wiki/Multi-paradigm_programming_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;multi-paradigm&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, usually &lt;/span&gt;&lt;/strong&gt;&lt;a title="Compiled language" href="http://en.wikipedia.org/wiki/Compiled_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;compiled language&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; supporting &lt;/span&gt;&lt;/strong&gt;&lt;a title="Procedural programming" href="http://en.wikipedia.org/wiki/Procedural_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;procedural programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Data abstraction" href="http://en.wikipedia.org/wiki/Data_abstraction"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;data abstraction&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Object-oriented programming" href="http://en.wikipedia.org/wiki/Object-oriented_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;object-oriented programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;generic programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a title="Bjarne Stroustrup" href="http://en.wikipedia.org/wiki/Bjarne_Stroustrup"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Bjarne Stroustrup&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; developed C++ in 1979 at &lt;/span&gt;&lt;/strong&gt;&lt;a title="Bell Labs" href="http://en.wikipedia.org/wiki/Bell_Labs"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Bell Labs&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; as an enhancement to the &lt;/span&gt;&lt;/strong&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_%28programming_language%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C programming language&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; and named it "C with Classes". In 1983 it was renamed to C++. Enhancements started with the addition of &lt;/span&gt;&lt;/strong&gt;&lt;a title="Class (computer science)" href="http://en.wikipedia.org/wiki/Class_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;classes&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, followed by, among other features, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Virtual functions" href="http://en.wikipedia.org/wiki/Virtual_functions"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;virtual functions&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Operator overloading" href="http://en.wikipedia.org/wiki/Operator_overloading"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;operator overloading&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Multiple inheritance" href="http://en.wikipedia.org/wiki/Multiple_inheritance"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;multiple inheritance&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Template (programming)" href="http://en.wikipedia.org/wiki/Template_%28programming%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;templates&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Exception handling" href="http://en.wikipedia.org/wiki/Exception_handling"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;exception handling&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. The C++ programming language standard was ratified in 1998 as &lt;/span&gt;&lt;/strong&gt;&lt;a title="ISO/IEC 14882" href="http://en.wikipedia.org/wiki/ISO/IEC_14882"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ISO/IEC 14882&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;:1998, the current version of which is the 2003 version, ISO/IEC 14882:2003. A new version of the standard (known informally as &lt;/span&gt;&lt;/strong&gt;&lt;a title="C++0x" href="http://en.wikipedia.org/wiki/C%2B%2B0x"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C++0x&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;) is being developed.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Language standard&lt;br /&gt;After years of work, a joint &lt;/span&gt;&lt;/strong&gt;&lt;a title="American National Standards Institute" href="http://en.wikipedia.org/wiki/American_National_Standards_Institute"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ANSI&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;–&lt;/span&gt;&lt;/strong&gt;&lt;a title="International Organization for Standardization" href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ISO&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; committee standardized C++ in 1998 (&lt;/span&gt;&lt;/strong&gt;&lt;a title="ISO/IEC 14882" href="http://en.wikipedia.org/wiki/ISO/IEC_14882"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ISO/IEC 14882&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;:1998). For some years after the official release of the standard, the committee processed defect reports, and published a corrected version of the C++ standard in 2003. In 2005, a technical report, called the "&lt;/span&gt;&lt;/strong&gt;&lt;a title="Technical Report 1" href="http://en.wikipedia.org/wiki/Technical_Report_1"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Library Technical Report 1&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;" (often known as TR1 for short) was released. While not an official part of the standard, it gives a number of extensions to the standard library which are expected to be included in the next version of C++. Support for TR1 is growing in almost all currently maintained C++ compilers.&lt;br /&gt;While the C++ language is royalty-free, the standard document itself is not freely available.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Etymology" name="Etymology"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Etymology" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=3"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Etymology&lt;br /&gt;According to Stroustrup: "the name signifies the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Evolution" href="http://en.wikipedia.org/wiki/Evolution"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;evolutionary&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; nature of the changes from C".&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-name"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[3]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; During C++'s development period, the language had been referred to as "new C", then "C with Classes". The final name is credited to &lt;/span&gt;&lt;/strong&gt;&lt;a title="Rick Mascitti" href="http://en.wikipedia.org/wiki/Rick_Mascitti"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Rick Mascitti&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (mid-1983) and was first used in December 1983. When Mascitti was questioned informally in 1992 about the naming, he indicated that it was given in a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Tongue-in-cheek" href="http://en.wikipedia.org/wiki/Tongue-in-cheek"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;tongue-in-cheek&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; spirit. He never thought that it would become the formal name of the language.[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Wikipedia:Citation needed" href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;citation needed&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] It stems from C's "++" &lt;/span&gt;&lt;/strong&gt;&lt;a title="Operator" href="http://en.wikipedia.org/wiki/Operator"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;operator&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (which increments the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Value (computer science)" href="http://en.wikipedia.org/wiki/Value_%28computer_science%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;value&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; of a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Variable" href="http://en.wikipedia.org/wiki/Variable"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;variable&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; after evaluating it) and a common &lt;/span&gt;&lt;/strong&gt;&lt;a title="Naming convention" href="http://en.wikipedia.org/wiki/Naming_convention"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;naming convention&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; of using "+" to indicate an enhanced computer program. &lt;/span&gt;&lt;/strong&gt;&lt;a title="ABCL/c+" href="http://en.wikipedia.org/wiki/ABCL/c%2B"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ABCL/c+&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; was the name of an earlier, unrelated programming language.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Philosophy" name="Philosophy"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Philosophy" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=4"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Philosophy&lt;br /&gt;In &lt;/span&gt;&lt;/strong&gt;&lt;a title="The Design and Evolution of C++" href="http://en.wikipedia.org/wiki/The_Design_and_Evolution_of_C%2B%2B"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;The Design and Evolution of C++&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (1994), Bjarne Stroustrup describes some rules that he uses for the design of C++:&lt;br /&gt;C++ is designed to be a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Statically typed" href="http://en.wikipedia.org/wiki/Statically_typed"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;statically typed&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, general-purpose language that is as efficient and portable as C&lt;br /&gt;C++ is designed to directly and comprehensively support multiple programming styles (&lt;/span&gt;&lt;/strong&gt;&lt;a title="Procedural programming" href="http://en.wikipedia.org/wiki/Procedural_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;procedural programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Data abstraction" href="http://en.wikipedia.org/wiki/Data_abstraction"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;data abstraction&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Object-oriented programming" href="http://en.wikipedia.org/wiki/Object-oriented_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;object-oriented programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;generic programming&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;)&lt;br /&gt;C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly&lt;br /&gt;C++ is designed to be as compatible with C as possible, therefore providing a smooth transition from C&lt;br /&gt;C++ avoids features that are platform specific or not general purpose&lt;br /&gt;C++ does not incur overhead for features that are not used (the "zero-overhead principle")&lt;br /&gt;C++ is designed to function without a sophisticated programming environment&lt;br /&gt;Inside the C++ Object Model (Lippman, 1996) describes how compilers may convert C++ program statements into an in-memory layout. Compiler authors are, however, free to implement the standard in their own manner.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Standard_library" name="Standard_library"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Standard library" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=5"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Standard library&lt;br /&gt;The 1998 &lt;/span&gt;&lt;/strong&gt;&lt;a title="American National Standards Institute" href="http://en.wikipedia.org/wiki/American_National_Standards_Institute"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ANSI&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;/&lt;/span&gt;&lt;/strong&gt;&lt;a title="International Organization for Standardization" href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;ISO&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; C++ &lt;/span&gt;&lt;/strong&gt;&lt;a title="Standardization" href="http://en.wikipedia.org/wiki/Standardization"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;standard&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; consists of two parts: the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Core language" href="http://en.wikipedia.org/wiki/Core_language"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;core language&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; and the &lt;/span&gt;&lt;/strong&gt;&lt;a title="C++ standard library" href="http://en.wikipedia.org/wiki/C%2B%2B_standard_library"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C++ standard library&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;; the latter includes most of the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Standard Template Library" href="http://en.wikipedia.org/wiki/Standard_Template_Library"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Standard Template Library&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;/span&gt;&lt;/strong&gt;&lt;a title="C (programming language)" href="http://en.wikipedia.org/wiki/C_%28programming_language%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Fortran" href="http://en.wikipedia.org/wiki/Fortran"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Fortran&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;/strong&gt;&lt;a title="Pascal (programming language)" href="http://en.wikipedia.org/wiki/Pascal_%28programming_language%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Pascal&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, or &lt;/span&gt;&lt;/strong&gt;&lt;a title="BASIC" href="http://en.wikipedia.org/wiki/BASIC"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;BASIC&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. Which of these are supported is compiler dependent.&lt;br /&gt;The C++ standard library incorporates the C standard library with some small modifications to make it work better with the C++ language. Another large part of the C++ library is based on the STL. This provides such useful tools as &lt;/span&gt;&lt;/strong&gt;&lt;a title="Container (data structure)" href="http://en.wikipedia.org/wiki/Container_%28data_structure%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;containers&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (for example &lt;/span&gt;&lt;/strong&gt;&lt;a title="Array" href="http://en.wikipedia.org/wiki/Array"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;vectors&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Linked list" href="http://en.wikipedia.org/wiki/Linked_list"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;lists&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;), &lt;/span&gt;&lt;/strong&gt;&lt;a title="Iterator" href="http://en.wikipedia.org/wiki/Iterator"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;iterators&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; (generalized &lt;/span&gt;&lt;/strong&gt;&lt;a title="Pointer" href="http://en.wikipedia.org/wiki/Pointer"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;pointers&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;) to provide these containers with array-like access and &lt;/span&gt;&lt;/strong&gt;&lt;a title="Algorithm" href="http://en.wikipedia.org/wiki/Algorithm"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;algorithms&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; to perform operations such as searching and sorting. Furthermore (multi)maps (&lt;/span&gt;&lt;/strong&gt;&lt;a title="Associative array" href="http://en.wikipedia.org/wiki/Associative_array"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;associative arrays&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&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;/span&gt;&lt;/strong&gt;&lt;a title="Feature" href="http://en.wikipedia.org/wiki/Feature"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;features&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; of the &lt;/span&gt;&lt;/strong&gt;&lt;a title="Library" href="http://en.wikipedia.org/wiki/Library"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;library&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; are accessed by using the #include &lt;/span&gt;&lt;/strong&gt;&lt;a title="Directive (programming)" href="http://en.wikipedia.org/wiki/Directive_%28programming%29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;directive&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; to include a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Standard header" href="http://en.wikipedia.org/wiki/Standard_header"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;standard header&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;. C++ provides &lt;/span&gt;&lt;/strong&gt;&lt;a title="C++ standard library" href="http://en.wikipedia.org/wiki/C%2B%2B_standard_library#Standard_headers"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;69 standard headers&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, of which 19 are deprecated.&lt;br /&gt;Using the standard library — for example, using std::vector or std::string instead of a C-style array — can help lead to safer and more scalable software.&lt;br /&gt;The STL was originally a third-party library from &lt;/span&gt;&lt;/strong&gt;&lt;a title="Hewlett-Packard" href="http://en.wikipedia.org/wiki/Hewlett-Packard"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;HP&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; and later &lt;/span&gt;&lt;/strong&gt;&lt;a title="Silicon Graphics" href="http://en.wikipedia.org/wiki/Silicon_Graphics"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;SGI&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, before its incorporation into the C++ standard. The standard does not refer to it as "STL", 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;br /&gt;Most C++ compilers provide an implementation of the C++ standard library, including the STL. Compiler-independent implementations of the STL, such as &lt;/span&gt;&lt;/strong&gt;&lt;a class="new" title="STLPort" href="http://en.wikipedia.org/w/index.php?title=STLPort&amp;amp;action=edit"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;STLPort&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;, also exist. Other projects also produce various custom implementations of the C++ standard library and the STL with various design goals.&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;a id="Hello_world_program" name="Hello_world_program"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;/strong&gt;&lt;a title="Edit section: Hello world program" href="http://en.wikipedia.org/w/index.php?title=C%2B%2B&amp;amp;action=edit&amp;amp;section=6"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;] Hello world program&lt;br /&gt;The following is a &lt;/span&gt;&lt;/strong&gt;&lt;a title="Hello world program" href="http://en.wikipedia.org/wiki/Hello_world_program"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Hello world program&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; which uses the &lt;/span&gt;&lt;/strong&gt;&lt;a title="C++ standard library" href="http://en.wikipedia.org/wiki/C%2B%2B_standard_library"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;C++ standard library&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt; stream facility to write a message to &lt;/span&gt;&lt;/strong&gt;&lt;a title="Standard output" href="http://en.wikipedia.org/wiki/Standard_output#Standard_output_.28stdout.29"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;standard output&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;.&lt;/span&gt;&lt;/strong&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C%2B%2B#_note-1"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;[4]&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;#include &lt;iostream&gt; // provides std::cout&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;std::cout &lt;&lt; "Hello, world!\n";&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-3947185731328471801?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/3947185731328471801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=3947185731328471801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/3947185731328471801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/3947185731328471801'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/c.html' title='C++'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-8731714128999225723</id><published>2008-01-24T07:16:00.001-08:00</published><updated>2008-01-24T07:16:46.820-08:00</updated><title type='text'>Tools for mitigating issues with C</title><content type='html'>&lt;span style="color:#3366ff;"&gt;Tools have been created to help C programmers avoid some of the problems inherent in the language.&lt;br /&gt;Automated source code checking and auditing are beneficial in any language, and for C many such tools exist, such as &lt;/span&gt;&lt;a title="Lint programming tool" href="http://en.wikipedia.org/wiki/Lint_programming_tool"&gt;&lt;span style="color:#3366ff;"&gt;Lint&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;. A common practice is to use Lint to detect questionable code when a program is first written. Once a program passes Lint, it is then compiled using the C compiler.&lt;br /&gt;There are also compilers, libraries and operating system level mechanisms for performing array bounds checking, &lt;/span&gt;&lt;a title="Buffer overflow" href="http://en.wikipedia.org/wiki/Buffer_overflow"&gt;&lt;span style="color:#3366ff;"&gt;buffer overflow&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; detection, &lt;/span&gt;&lt;a title="Serialization" href="http://en.wikipedia.org/wiki/Serialization"&gt;&lt;span style="color:#3366ff;"&gt;serialization&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; and &lt;/span&gt;&lt;a title="Garbage collection (computer science)" href="http://en.wikipedia.org/wiki/Garbage_collection_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;automatic garbage collection&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, that are not a standard part of C.&lt;br /&gt;&lt;/span&gt;&lt;a class="external text" title="http://invisible-island.net/cproto" href="http://invisible-island.net/cproto" rel="nofollow"&gt;&lt;span style="color:#3366ff;"&gt;Cproto&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; is a program that will read a C source file and output prototypes of all the functions within the source file. This program can be used in conjunction with the &lt;/span&gt;&lt;a title="Make (software)" href="http://en.wikipedia.org/wiki/Make_%28software%29"&gt;&lt;span style="color:#3366ff;"&gt;make&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; command to create new files containing prototypes each time the source file has been changed. These prototype files can be included by the original source file (e.g., as "filename.p"), which reduces the problems of keeping function definitions and source files in agreement.&lt;br /&gt;It should be recognized that these tools are not a panacea. Because of C's flexibility, some types of errors involving misuse of variadic functions, out-of-bounds array indexing, and incorrect memory management cannot be detected on some architectures without incurring a significant performance penalty. However, some common cases can be recognized and accounted for.&lt;br /&gt;&lt;/span&gt;&lt;a id="Related_languages" name="Related_languages"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: Related languages" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=25"&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;] Related languages&lt;br /&gt;When object-oriented languages became popular, &lt;/span&gt;&lt;a title="C++" href="http://en.wikipedia.org/wiki/C%2B%2B"&gt;&lt;span style="color:#3366ff;"&gt;C++&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; and &lt;/span&gt;&lt;a title="Objective-C" href="http://en.wikipedia.org/wiki/Objective-C"&gt;&lt;span style="color:#3366ff;"&gt;Objective-C&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; were two different extensions of C that provided object-oriented capabilities. Both languages were originally implemented as preprocessors -- source code was translated into C, and then compiled with a C compiler.&lt;br /&gt;&lt;/span&gt;&lt;a id="C.2B.2B" name="C.2B.2B"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: C++" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=26"&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;] C++&lt;br /&gt;Main article: &lt;/span&gt;&lt;a title="C++" href="http://en.wikipedia.org/wiki/C%2B%2B"&gt;&lt;span style="color:#3366ff;"&gt;C++&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a title="Bjarne Stroustrup" href="http://en.wikipedia.org/wiki/Bjarne_Stroustrup"&gt;&lt;span style="color:#3366ff;"&gt;Bjarne Stroustrup&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; devised the C++ programming language as one approach to providing object-oriented functionality with C-like syntax. C++ adds greater typing strength, scoping and other tools useful in object-oriented programming and permits &lt;/span&gt;&lt;a title="Generic programming" href="http://en.wikipedia.org/wiki/Generic_programming"&gt;&lt;span style="color:#3366ff;"&gt;generic programming&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; via templates. Nearly a superset of C, C++ now supports most of C, with a few exceptions (see &lt;/span&gt;&lt;a title="Compatibility of C and C++" href="http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B"&gt;&lt;span style="color:#3366ff;"&gt;Compatibility of C and C++&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; for an exhaustive list of differences).&lt;br /&gt;&lt;/span&gt;&lt;a id="D" name="D"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: D" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=27"&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;] D&lt;br /&gt;Main article: &lt;/span&gt;&lt;a title="D (programming language)" href="http://en.wikipedia.org/wiki/D_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;D (programming language)&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;Unlike &lt;/span&gt;&lt;a title="C++" href="http://en.wikipedia.org/wiki/C%2B%2B"&gt;&lt;span style="color:#3366ff;"&gt;C++&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, which maintains nearly complete backwards compatibility with C, D makes a clean break with C while maintaining the same general syntax. It abandons a number of features of C which the designer of D considered undesirable, including the &lt;/span&gt;&lt;a title="C preprocessor" href="http://en.wikipedia.org/wiki/C_preprocessor"&gt;&lt;span style="color:#3366ff;"&gt;C preprocessor&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt; and &lt;/span&gt;&lt;a title="C trigraph" href="http://en.wikipedia.org/wiki/C_trigraph"&gt;&lt;span style="color:#3366ff;"&gt;trigraphs&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, and adds some, but not all, of the extensions of C++.&lt;br /&gt;&lt;/span&gt;&lt;a id="Objective-C" name="Objective-C"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: Objective-C" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=28"&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;] Objective-C&lt;br /&gt;Main article: &lt;/span&gt;&lt;a title="Objective-C" href="http://en.wikipedia.org/wiki/Objective-C"&gt;&lt;span style="color:#3366ff;"&gt;Objective-C&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;Objective-C is a very "thin" layer on top of, and is a strict superset of, C that permits object-oriented programming using a hybrid dynamic/static typing paradigm. Objective-C derives its syntax from both C and &lt;/span&gt;&lt;a title="Smalltalk" href="http://en.wikipedia.org/wiki/Smalltalk"&gt;&lt;span style="color:#3366ff;"&gt;Smalltalk&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;: syntax that involves preprocessing, expressions, function declarations and function calls is inherited from C, while the syntax for object-oriented features is taken from Smalltalk.&lt;br /&gt;&lt;/span&gt;&lt;a id="Other_influences" name="Other_influences"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;[&lt;/span&gt;&lt;a title="Edit section: Other influences" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=29"&gt;&lt;span style="color:#3366ff;"&gt;edit&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;] Other influences&lt;br /&gt;C has directly or indirectly influenced many later languages such as &lt;/span&gt;&lt;a title="Java (programming language)" href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;Java&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="C Sharp (programming language)" href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;C#&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="Perl" href="http://en.wikipedia.org/wiki/Perl"&gt;&lt;span style="color:#3366ff;"&gt;Perl&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="PHP" href="http://en.wikipedia.org/wiki/PHP"&gt;&lt;span style="color:#3366ff;"&gt;PHP&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, &lt;/span&gt;&lt;a title="JavaScript" href="http://en.wikipedia.org/wiki/JavaScript"&gt;&lt;span style="color:#3366ff;"&gt;JavaScript&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;, and Unix's &lt;/span&gt;&lt;a title="C Shell" href="http://en.wikipedia.org/wiki/C_Shell"&gt;&lt;span style="color:#3366ff;"&gt;C Shell&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;. The most pervasive influence has been syntactical: all of the languages mentioned combine the statement and (more or less recognizably) expression syntax of C with type systems, data models and/or large-scale program structures that differ from those of C, sometimes radically&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-8731714128999225723?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/8731714128999225723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=8731714128999225723' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8731714128999225723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8731714128999225723'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/tools-for-mitigating-issues-with-c.html' title='Tools for mitigating issues with C'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-597118492563870221</id><published>2008-01-24T07:14:00.000-08:00</published><updated>2008-01-24T07:15:07.320-08:00</updated><title type='text'>Data structures</title><content type='html'>&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;C has a static &lt;/strong&gt;&lt;/span&gt;&lt;a title="Weak typing" href="http://en.wikipedia.org/wiki/Weak_typing"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;weak typing&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;a title="Type system" href="http://en.wikipedia.org/wiki/Type_system"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;type system&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; that shares some similarities with that of other &lt;/strong&gt;&lt;/span&gt;&lt;a title="ALGOL" href="http://en.wikipedia.org/wiki/ALGOL"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;ALGOL&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; descendants such as &lt;/strong&gt;&lt;/span&gt;&lt;a title="Pascal (programming language)" href="http://en.wikipedia.org/wiki/Pascal_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Pascal&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;. There are built-in types for integers of various sizes, both signed and unsigned, &lt;/strong&gt;&lt;/span&gt;&lt;a title="Floating-point number" href="http://en.wikipedia.org/wiki/Floating-point_number"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;floating-point numbers&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, characters, and enumerated types (enum). C99 added a &lt;/strong&gt;&lt;/span&gt;&lt;a title="Boolean datatype" href="http://en.wikipedia.org/wiki/Boolean_datatype"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;boolean datatype&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;. There are also derived types including &lt;/strong&gt;&lt;/span&gt;&lt;a title="Array" href="http://en.wikipedia.org/wiki/Array"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;arrays&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;/span&gt;&lt;a title="Pointer" href="http://en.wikipedia.org/wiki/Pointer"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;pointers&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;/span&gt;&lt;a title="Record (computer science)" href="http://en.wikipedia.org/wiki/Record_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;records&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; (struct), and untagged &lt;/strong&gt;&lt;/span&gt;&lt;a title="Union (computer science)" href="http://en.wikipedia.org/wiki/Union_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;unions&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; (union).&lt;br /&gt;C is often used in low-level systems programming where escapes from the type system may be necessary. The compiler attempts to ensure type correctness of most expressions, but the programmer can override the checks in various ways, either by using a &lt;/strong&gt;&lt;/span&gt;&lt;a title="Type conversion" href="http://en.wikipedia.org/wiki/Type_conversion"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;type cast&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; to explicitly convert a value from one type to another, or by using pointers or unions to reinterpret the underlying bits of a value in some other way.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a id="Pointers" name="Pointers"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/span&gt;&lt;a title="Edit section: Pointers" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=18"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;] Pointers&lt;br /&gt;C supports the use of pointers, a very simple type of &lt;/strong&gt;&lt;/span&gt;&lt;a title="Reference (computer science)" href="http://en.wikipedia.org/wiki/Reference_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;reference&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; that records, in effect, the address or location of an object or function in memory. Pointers can be dereferenced to access data stored at the address pointed to, or to invoke a pointed-to function. Pointers can be manipulated using assignment and also &lt;/strong&gt;&lt;/span&gt;&lt;a title="Pointer arithmetic" href="http://en.wikipedia.org/wiki/Pointer_arithmetic"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;pointer arithmetic&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;. The run-time representation of a pointer value is typically a raw memory address (perhaps augmented by an offset-within-word field), but since a pointer's type includes the type of the thing pointed to, expressions including pointers can be type-checked at compile time. Pointer arithmetic is automatically scaled by the size of the pointed-to data type. (See &lt;/strong&gt;&lt;/span&gt;&lt;a title="" href="http://en.wikipedia.org/wiki/C_(programming_language)#Array.E2.86.94pointer_interchangeability"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Array↔pointer interchangeability&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; below.) Pointers are used for many different purposes in C. &lt;/strong&gt;&lt;/span&gt;&lt;a title="String (computer science)" href="http://en.wikipedia.org/wiki/String_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Text strings&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; are commonly manipulated using pointers into arrays of characters. &lt;/strong&gt;&lt;/span&gt;&lt;a title="Dynamic memory allocation" href="http://en.wikipedia.org/wiki/Dynamic_memory_allocation"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Dynamic memory allocation&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, which is described below, is performed using pointers. Many data types, such as &lt;/strong&gt;&lt;/span&gt;&lt;a title="Tree (data structure)" href="http://en.wikipedia.org/wiki/Tree_%28data_structure%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;trees&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, are commonly implemented as dynamically allocated struct objects linked together using pointers. Pointers to functions are useful for &lt;/strong&gt;&lt;/span&gt;&lt;a title="Callback (computer science)" href="http://en.wikipedia.org/wiki/Callback_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;callbacks&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; from event handlers.&lt;br /&gt;A &lt;/strong&gt;&lt;/span&gt;&lt;a title="Null pointer" href="http://en.wikipedia.org/wiki/Null_pointer"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;null pointer&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; is a pointer value that points to no valid location (it is often represented by address zero). Dereferencing a null pointer is therefore meaningless, typically resulting in a run-time error. Null pointers are useful for indicating special cases such as no next pointer in the final node of a &lt;/strong&gt;&lt;/span&gt;&lt;a title="Linked list" href="http://en.wikipedia.org/wiki/Linked_list"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;linked list&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, or as an error indication from functions returning pointers.&lt;br /&gt;Void pointers (void *) point to objects of unknown type, and can therefore be used as "generic" data pointers. Since the size and type of the pointed-to object is not known, void pointers cannot be dereferenced, nor is pointer arithmetic on them allowed, although they can easily be (and in many contexts implicitly are) converted to and from any other object pointer type.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a id="Arrays" name="Arrays"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/span&gt;&lt;a title="Edit section: Arrays" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=19"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;] Arrays&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a title="Array" href="http://en.wikipedia.org/wiki/Array"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Array&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; types in C are always one-dimensional and, traditionally, of a fixed, static size specified at compile time. (The more recent C99 standard also allows a form of variable-length arrays.) However, it is also possible to allocate a block of memory (of arbitrary size) at run-time, using the standard library's malloc function, and treat it as an array. C's unification of arrays and pointers (see below) means that true arrays and these dynamically-allocated, simulated arrays are virtually interchangeable. Since arrays are always accessed (in effect) via pointers, array accesses are typically not checked against the underlying array size, although the compiler may provide bounds checking as an option. Array bounds violations are therefore possible and rather common in carelessly written code (see the "&lt;/strong&gt;&lt;/span&gt;&lt;a title="C programming language, criticism" href="http://en.wikipedia.org/wiki/C_programming_language%2C_criticism#Arrays"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Criticism&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;" article), and can lead to various repercussions: illegal memory accesses, corruption of data, buffer overrun, run-time exceptions, etc.&lt;br /&gt;C does not have a special provision for declaring multidimensional arrays, but rather relies on recursion within the type system to declare arrays of arrays, which effectively accomplishes the same thing. The index values of the resulting "multidimensional array" can be thought of as increasing in &lt;/strong&gt;&lt;/span&gt;&lt;a title="Row-major order" href="http://en.wikipedia.org/wiki/Row-major_order"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;row-major order&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a id="Array.E2.86.94pointer_interchangeability" name="Array.E2.86.94pointer_interchangeability"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/span&gt;&lt;a title="Edit section: Array↔pointer interchangeability" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=20"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;] Array↔pointer interchangeability&lt;br /&gt;A distinctive (but potentially confusing) feature of C is its treatment of arrays and pointers. The array-subscript notation x[i] can also be used when x is a pointer; the interpretation (using pointer arithmetic) is to access the (i+1)th of several adjacent data objects pointed to by x, counting the object that x points to (which is x[0]) as the first element of the array.&lt;br /&gt;Formally, x[i] is equivalent to *(x + i). Since the type of the pointer involved is known to the compiler at compile time, the address that x + i points to is not the address pointed to by x incremented by i bytes, but rather incremented by i multiplied by the size of an element that x points to. The size of these elements can be determined with the operator &lt;/strong&gt;&lt;/span&gt;&lt;a title="Sizeof" href="http://en.wikipedia.org/wiki/Sizeof"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;sizeof&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; by applying it to any dereferenced element of x, as in n = sizeof *x or n = sizeof x[0].&lt;br /&gt;Furthermore, in most expression contexts (a notable exception is sizeof array), the name of an array is automatically converted to a pointer to the array's first element; this implies that an array is never copied as a whole when named as an argument to a function, but rather only the address of its first element is passed. Therefore, although C's function calls use &lt;/strong&gt;&lt;/span&gt;&lt;a title="Call-by-value" href="http://en.wikipedia.org/wiki/Call-by-value"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;pass-by-value&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; semantics, arrays are in effect passed by &lt;/strong&gt;&lt;/span&gt;&lt;a title="Reference (computer science)" href="http://en.wikipedia.org/wiki/Reference_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;reference&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;.&lt;br /&gt;The number of elements in a declared array a can be determined as sizeof a / sizeof a[0].&lt;br /&gt;An interesting demonstration of the interchangeability of pointers and arrays is shown below. The four assignments are equivalent and each is valid C code. Note how the last line contains the strange code i[x] = 1;, which has the index variable i apparently interchanged with the array variable x. This last line might be found in &lt;/strong&gt;&lt;/span&gt;&lt;a title="Obfuscated C" href="http://en.wikipedia.org/wiki/Obfuscated_C"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;obfuscated C&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; C code./* x designates an array */&lt;br /&gt;x[i] = 1;&lt;br /&gt;*(x + i) = 1;&lt;br /&gt;*(i + x) = 1;&lt;br /&gt;i[x] = 1; /* strange, but correct: i[x] is equivalent to *(i + x) */&lt;br /&gt;However, there is a distinction to be made between arrays and pointer variables. Even though the name of an array is in most expression contexts converted to a pointer (to its first element), this pointer does not itself occupy any storage. Consequently, you cannot change what an array "points to", and it is impossible to assign to an array. (Arrays may however be copied using the memcpy function, for example.)&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a id="Memory_management" name="Memory_management"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/span&gt;&lt;a title="Edit section: Memory management" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=21"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;] Memory management&lt;br /&gt;One of the most important functions of a programming language is to provide facilities for managing &lt;/strong&gt;&lt;/span&gt;&lt;a title="Computer memory" href="http://en.wikipedia.org/wiki/Computer_memory"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;memory&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; and the objects that are stored in memory. C provides three distinct ways to allocate memory for objects:&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a title="Static memory allocation" href="http://en.wikipedia.org/wiki/Static_memory_allocation"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Static memory allocation&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;: space for the object is provided in the binary at compile-time; these objects have an &lt;/strong&gt;&lt;/span&gt;&lt;a title="Variable" href="http://en.wikipedia.org/wiki/Variable#Scope_and_extent"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;extent&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; (or lifetime) as long as the binary which contains them is loaded into memory&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a title="Automatic memory allocation" href="http://en.wikipedia.org/wiki/Automatic_memory_allocation"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Automatic memory allocation&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;: temporary objects can be stored on the &lt;/strong&gt;&lt;/span&gt;&lt;a title="Call stack" href="http://en.wikipedia.org/wiki/Call_stack"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;stack&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, and this space is automatically freed and reusable after the block in which they are declared is exited&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a title="Dynamic memory allocation" href="http://en.wikipedia.org/wiki/Dynamic_memory_allocation"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Dynamic memory allocation&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;: blocks of memory of arbitrary size can be requested at run-time using library functions such as &lt;/strong&gt;&lt;/span&gt;&lt;a title="Malloc" href="http://en.wikipedia.org/wiki/Malloc"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;malloc&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; from a region of memory called the &lt;/strong&gt;&lt;/span&gt;&lt;a title="Dynamic memory allocation" href="http://en.wikipedia.org/wiki/Dynamic_memory_allocation"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;heap&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;; these blocks persist until subsequently freed for reuse by calling the library function &lt;/strong&gt;&lt;/span&gt;&lt;a title="Malloc" href="http://en.wikipedia.org/wiki/Malloc"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;free&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;br /&gt;These three approaches are appropriate in different situations and have various tradeoffs. For example, static memory allocation has no allocation overhead, automatic allocation may involve a small amount of overhead, and dynamic memory allocation can potentially have a great deal of overhead for both allocation and deallocation. On the other hand, stack space is typically much more limited and transient than either static memory or heap space, and dynamic memory allocation allows allocation of objects whose size is known only at run-time. Most C programs make extensive use of all three.&lt;br /&gt;Where possible, automatic or static allocation is usually preferred because the storage is managed by the compiler, freeing the programmer of the potentially error-prone chore of manually allocating and releasing storage. Unfortunately, many data structures can grow in size at runtime, and since static allocations (and automatic allocations in C89 and C90) must have a fixed size at compile-time, there are many situations in which dynamic allocation must be used. Prior to the C99 standard, variable-sized arrays were a common example of this (see "&lt;/strong&gt;&lt;/span&gt;&lt;a title="Malloc" href="http://en.wikipedia.org/wiki/Malloc"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;malloc&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;" for an example of dynamically allocated arrays).&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a id="Libraries" name="Libraries"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/span&gt;&lt;a title="Edit section: Libraries" href="http://en.wikipedia.org/w/index.php?title=C_%28programming_language%29&amp;amp;action=edit&amp;amp;section=22"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;edit&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;] Libraries&lt;br /&gt;The C programming language uses &lt;/strong&gt;&lt;/span&gt;&lt;a title="Library (software)" href="http://en.wikipedia.org/wiki/Library_%28software%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;libraries&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; as its primary method of extension. In C, a library is a set of functions contained within a single "archive" file. Each library typically has a &lt;/strong&gt;&lt;/span&gt;&lt;a title="Header files" href="http://en.wikipedia.org/wiki/Header_files"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;header file&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, which contains the prototypes of the functions contained within the library that may be used by a program, and declarations of special data types and macro symbols used with these functions. In order for a program to use a library, it must include the library's header file, and the library must be linked with the program, which in many cases requires &lt;/strong&gt;&lt;/span&gt;&lt;a title="Compiler flag" href="http://en.wikipedia.org/wiki/Compiler_flag"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;compiler flags&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; (e.g., -lm, shorthand for "math library").&lt;br /&gt;The most common C library is the &lt;/strong&gt;&lt;/span&gt;&lt;a title="C standard library" href="http://en.wikipedia.org/wiki/C_standard_library"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;C standard library&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, which is specified by the &lt;/strong&gt;&lt;/span&gt;&lt;a title="ISO standard" href="http://en.wikipedia.org/wiki/ISO_standard"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;ISO&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; and &lt;/strong&gt;&lt;/span&gt;&lt;a title="ANSI C standard" href="http://en.wikipedia.org/wiki/ANSI_C_standard"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;ANSI C standards&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; and comes with every C implementation. ("Freestanding" [embedded] C implementations may provide only a subset of the standard library.) This library supports stream input and output, memory allocation, mathematics, character strings, and time values.&lt;br /&gt;Another common set of C library functions are those used by applications specifically targeted for &lt;/strong&gt;&lt;/span&gt;&lt;a title="Unix" href="http://en.wikipedia.org/wiki/Unix"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Unix&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; and &lt;/strong&gt;&lt;/span&gt;&lt;a title="Unix-like" href="http://en.wikipedia.org/wiki/Unix-like"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Unix-like&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; systems, especially functions which provide an interface to the &lt;/strong&gt;&lt;/span&gt;&lt;a title="Kernel (computer science)" href="http://en.wikipedia.org/wiki/Kernel_%28computer_science%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;kernel&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;. These functions are detailed in various standards such as &lt;/strong&gt;&lt;/span&gt;&lt;a title="POSIX" href="http://en.wikipedia.org/wiki/POSIX"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;POSIX&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt; and the &lt;/strong&gt;&lt;/span&gt;&lt;a title="Single UNIX Specification" href="http://en.wikipedia.org/wiki/Single_UNIX_Specification"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Single UNIX Specification&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;.&lt;br /&gt;Since many programs have been written in C, there are a wide variety of other libraries available. Libraries are often written in C because C compilers generate efficient &lt;/strong&gt;&lt;/span&gt;&lt;a title="Object code" href="http://en.wikipedia.org/wiki/Object_code"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;object code&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;; programmers then create interfaces to the library so that the routines can be used from higher-level languages like &lt;/strong&gt;&lt;/span&gt;&lt;a title="Java (programming language)" href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;/span&gt;&lt;a title="Perl" href="http://en.wikipedia.org/wiki/Perl"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Perl&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;, and &lt;/strong&gt;&lt;/span&gt;&lt;a title="Python (programming language)" href="http://en.wikipedia.org/wiki/Python_%28programming_language%29"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Python&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-597118492563870221?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/597118492563870221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=597118492563870221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/597118492563870221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/597118492563870221'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/data-structures.html' title='Data structures'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-6326966759168973490</id><published>2008-01-24T07:11:00.000-08:00</published><updated>2008-01-24T07:13:44.202-08:00</updated><title type='text'>C's primary use is for "system programming",</title><content type='html'>C's primary use is for "system programming", including implementing operating systems and embedded system applications, due to a combination of desirable characteristics such as code portability and efficiency, ability to access specific hardware addresses, ability to "pun" types to match externally imposed data access requirements, and low runtime demand on system resources.&lt;br /&gt;&lt;br /&gt;C has also been widely used to implement end-user applications, although as applications became larger much of that development shifted to other, higher-level languages.&lt;br /&gt;&lt;br /&gt;One consequence of C's wide acceptance and efficiency is that the compilers, libraries, and interpreters of other higher-level languages are often implemented in C.&lt;br /&gt;&lt;br /&gt;C is used as an intermediate language by some implementations of higher-level languages, which translate the input language to C source code, perhaps along with other object representations. The C source code is compiled by a C compiler to produce object code. This approach may be used to gain portability (C compilers exist for nearly all platforms) or for convenience (it avoids having to develop machine-specific code generators). Some programming languages which use C this way are Eiffel, Esterel, Gambit, the Glasgow Haskell Compiler, Lisp dialects, Lush, Sather, Squeak, and Vala.&lt;br /&gt;&lt;br /&gt;Unfortunately, C was designed as a programming language, not as a compiler target language, and is thus less than ideal for use as an intermediate language. This has led to development of C-based intermediate languages such as C--.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Syntax&lt;br /&gt;Main article: C syntax&lt;br /&gt;Unlike languages such as FORTRAN 77, C source code is free-form which allows arbitrary use of whitespace to format code, rather than column-based or text-line-based restrictions. Comments may appear either between the delimiters /* and */, or (in C99) following // until the end of the line.&lt;br /&gt;&lt;br /&gt;Each source file contains declarations and function definitions. Function definitions, in turn, contain declarations and statements. Declarations either define new types using keywords such as struct, union, and enum, or assign types to and perhaps reserve storage for new variables, usually by writing the type followed by the variable name. Keywords such as char and int specify built-in types. Sections of code are enclosed in braces ({ and }) to limit the scope of declarations and to act as a single statement for control structures.&lt;br /&gt;&lt;br /&gt;As an imperative language, C uses statements to specify actions. The most common statement is an expression statement, consisting of an expression to be evaluated, followed by a semicolon; as a side effect of the evaluation, functions may be called and variables may be assigned new values. To modify the normal sequential execution of statements, C provides several control-flow statements identified by reserved keywords. Structured programming is supported by if(-else) conditional execution and by do-while, while, and for iterative execution (looping). The for statement has separate initialization, testing, and reinitialization expressions, any or all of which can be omitted. break and continue can be used to leave the innermost enclosing loop statement or skip to its reinitialization. There is also a non-structured goto statement which branches directly to the designated label within the function. switch selects a case to be executed based on the value of an integer expression.&lt;br /&gt;&lt;br /&gt;Expressions can use a variety of built-in operators (see below) and may contain function calls. The order in which operands to most operators, as well as the arguments to functions, are evaluated is unspecified; the evaluations may even be interleaved. However, all side effects (including storage to variables) will occur before the next "sequence point"; sequence points include the end of each expression statement and the entry to and return from each function call. This permits a high degree of object code optimization by the compiler, but requires C programmers to exert more care to obtain reliable results than is needed for other programming languages.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C Operators&lt;br /&gt;Main article: Operators in C and C++&lt;br /&gt;C supports a rich set of operators, which are symbols used within an expression to specify the manipulations to be performed while evaluating that expression. C has operators for:&lt;br /&gt;&lt;br /&gt;arithmetic&lt;br /&gt;equality testing&lt;br /&gt;order relations&lt;br /&gt;boolean logic&lt;br /&gt;bitwise logic&lt;br /&gt;assignment&lt;br /&gt;increment and decrement&lt;br /&gt;reference and dereference&lt;br /&gt;conditional evaluation&lt;br /&gt;member selection&lt;br /&gt;type conversion&lt;br /&gt;object size&lt;br /&gt;function argument collection&lt;br /&gt;sequencing&lt;br /&gt;subexpression grouping&lt;br /&gt;&lt;br /&gt;Operator precedence and associativity&lt;br /&gt;What follows is the list of C operators sorted from highest to lowest priority (precedence). Operators of same priority are presented on the same line. (That the post-increment operator (++) has higher priority than the dereference operator (*) means that an expression *p++ is grouped as *(p++) and not (*p)++. That the subtraction operator (-) has left-to-right associativity means that an expression a-b-c is grouped as (a-b)-c and not a-(b-c).)&lt;br /&gt;&lt;br /&gt;Class Associativity Operators&lt;br /&gt;Grouping Nesting (expr)&lt;br /&gt;Postfix Left-to-Right (args) [] -&gt; . expr++ expr--&lt;br /&gt;Unary Right-to-Left ! ~ + − * &amp;amp; (typecast) sizeof ++expr --expr&lt;br /&gt;Multiplicative Left-to-Right * / %&lt;br /&gt;Additive Left-to-Right + -&lt;br /&gt;Shift Left-to-Right &lt;&lt; &gt;&gt;&lt;br /&gt;Relational Left-to-Right &lt; &lt;= &gt; &gt;=&lt;br /&gt;Equality Left-to-Right == !=&lt;br /&gt;Bitwise AND Left-to-Right &amp;amp;&lt;br /&gt;Bitwise XOR Left-to-Right ^&lt;br /&gt;Bitwise OR Left-to-Right &lt;br /&gt;Logical AND Left-to-Right &amp;amp;&amp;amp;&lt;br /&gt;Logical OR Left-to-Right &lt;br /&gt;Conditional Right-to-Left ?:&lt;br /&gt;Assignment Right-to-Left = += -= *= /= &amp;amp;= = ^= &lt;&lt;= &gt;&gt;=&lt;br /&gt;Sequence Left-to-Right ,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;"Hello, world" example&lt;br /&gt;&lt;/span&gt;The following simple application appeared in the first edition of K&amp;amp;R, and has become the model for an introductory program in most programming textbooks, regardless of programming language. The program prints out "hello, world" to the standard output, which is usually a terminal or screen display. Standard output might also be a file or some other hardware device, depending on how standard output is mapped at the time the program is executed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;main()&lt;br /&gt;{&lt;br /&gt;printf("hello, world\n");&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;The above program will compile on most modern compilers that are not in compliance mode, but does not meet the requirements of either C89 or C99. Compiling this program in C99 compliance mode will result in warning or error messages.[8] A compliant version of the above program follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;printf("hello, world\n");&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;What follows is a line-by-line analysis of the above program:&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;This first line of the program is a preprocessing directive, #include. This causes the preprocessor — the first tool to examine source code as it is compiled — to substitute the line with the entire text of the stdio.h file. The header file stdio.h contains declarations for standard input and output functions such as printf. The angle brackets surrounding stdio.h indicate that stdio.h can be found using an implementation-defined search strategy. Double quotes may also be used for headers, thus allowing the implementation to supply (up to) two strategies. Typically, angle brackets are reserved for headers supplied by the C compiler, and double quotes for local or installation-specific headers.&lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;This next line indicates that a function named main is being defined. The main function serves a special purpose in C programs: The run-time environment calls the main function to begin program execution. The type specifier int indicates that the return value, the value of evaluating the main function that is returned to its invoker (in this case the run-time environment), is an integer. The keyword void as a parameter list indicates that the main function takes no arguments.[9]&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;This opening curly brace indicates the beginning of the definition of the main function.&lt;br /&gt;&lt;br /&gt;printf("hello, world\n");&lt;br /&gt;This line calls (executes the code for) a function named printf, which is declared in the included header stdio.h and supplied from a system library. In this call, the printf function is passed (provided with) a single argument, the address of the first character in the string literal "hello, world\n". The string literal is an unnamed array with elements of type char, set up automatically by the compiler with a final 0-valued character to mark the end of the array (printf needs to know this). The \n is an escape sequence that C translates to the newline character, which on output signifies the end of the current line. The return value of the printf function is of type int, but it is silently discarded since it is not used by the caller. (A more careful program might test the return value to determine whether or not the printf function succeeded.) The semicolon ; terminates the statement.&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;This line terminates the execution of the main function and causes it to return the integer value 0, which is interpreted by the run-time system as an exit code (indicating successful execution).&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;This closing curly brace indicates the end of the code for the main function.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-6326966759168973490?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/6326966759168973490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=6326966759168973490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6326966759168973490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6326966759168973490'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/cs-primary-use-is-for-system.html' title='C&apos;s primary use is for &quot;system programming&quot;,'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-5134085272613834812</id><published>2008-01-24T07:10:00.000-08:00</published><updated>2008-01-24T07:11:25.915-08:00</updated><title type='text'>ANSI C and ISO C</title><content type='html'>&lt;strong&gt;During the late 1970s and 1980s, versions of C were implemented for a wide variety of mainframe computers, minicomputers, and microcomputers, including the IBM PC, as its popularity began to increase significantly.&lt;br /&gt;&lt;br /&gt;In 1983, the American National Standards Institute (ANSI) formed a committee, X3J11, to establish a standard specification of C. In 1989, the standard was ratified as ANSI X3.159-1989 "Programming Language C." This version of the language is often referred to as ANSI C, Standard C, or sometimes C89.&lt;br /&gt;&lt;br /&gt;In 1990, the ANSI C standard (with a few minor modifications) was adopted by the International Organization for Standardization (ISO) as ISO/IEC 9899:1990. This version is sometimes called C90. Therefore, the terms "C89" and "C90" refer to essentially the same language.&lt;br /&gt;&lt;br /&gt;One of the aims of the C standardization process was to produce a superset of K&amp;R C, incorporating many of the unofficial features subsequently introduced. However, the standards committee also included several new features, such as function prototypes (borrowed from C++), void pointers, support for international character sets and locales, and preprocessor enhancements. The syntax for parameter declarations was also augmented to include the C++ style:&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv)&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;although the K&amp;R interface&lt;br /&gt;&lt;br /&gt;int main(argc, argv)&lt;br /&gt;    int argc;&lt;br /&gt;    char **argv;&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;continued to be permitted, for compatibility with existing source code.&lt;br /&gt;&lt;br /&gt;C89 is supported by current C compilers, and most C code being written nowadays is based on it. Any program written only in Standard C and without any hardware-dependent assumptions will run correctly on any platform with a conforming C implementation, within its resource limits. Without such precautions, programs may compile only on a certain platform or with a particular compiler, due, for example, to the use of non-standard libraries, such as GUI libraries, or to a reliance on compiler- or platform-specific attributes such as the exact size of data types and byte endianness.&lt;br /&gt;&lt;br /&gt;In cases where code must be compilable by either standard-conforming or K&amp;R C-based compilers, the __STDC__ macro can be used to split the code into Standard and K&amp;R sections to take advantage of features available only in Standard C.&lt;br /&gt;&lt;br /&gt;#ifdef __STDC__&lt;br /&gt;extern int getopt(int,char * const *,const char *);&lt;br /&gt;#else&lt;br /&gt;extern int getopt();&lt;br /&gt;#endif&lt;br /&gt;In the above example, a compiler which has defined the __STDC__ macro (as mandated by the C standard) only interprets the line following the ifdef command. In other, nonstandard compilers which don't define the macro, only the line following the else command is interpreted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; C99&lt;br /&gt;Note: C99 is also the name of a C compiler for the Texas Instruments TI-99/4A home computer. Aside from being a C compiler, it is otherwise unrelated. &lt;br /&gt;After the ANSI standardization process, the C language specification remained relatively static for some time, whereas C++ continued to evolve, largely during its own standardization effort. Normative Amendment 1 created a new standard for the C language in 1995, but only to correct some details of the C89 standard and to add more extensive support for international character sets. However, the standard underwent further revision in the late 1990s, leading to the publication of ISO 9899:1999 in 1999. This standard is commonly referred to as "C99." It was adopted as an ANSI standard in May 2000.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;New features&lt;br /&gt;C99 introduced several new features, many of which had already been implemented as extensions in several compilers:&lt;br /&gt;&lt;br /&gt;inline functions &lt;br /&gt;variable declaration no longer restricted to file scope or the start of a compound statement &lt;br /&gt;several new data types, including long long int, optional extended integer types, an explicit boolean data type, and a complex type to represent complex numbers &lt;br /&gt;variable-length arrays &lt;br /&gt;support for one-line comments beginning with //, as in BCPL or C++ &lt;br /&gt;new library functions, such as snprintf &lt;br /&gt;new header files, such as stdbool.h and inttypes.h &lt;br /&gt;type-generic math functions (tgmath.h) &lt;br /&gt;improved support for IEEE floating point &lt;br /&gt;designated initializers &lt;br /&gt;compound literals &lt;br /&gt;support for variadic macros (macros of variable arity) &lt;br /&gt;restrict qualification to allow more aggressive code optimization &lt;br /&gt;&lt;br /&gt; Upward-compatibility with C90&lt;br /&gt;C99 is for the most part upward-compatible with C90, but is stricter in some ways; in particular, a declaration that lacks a type specifier no longer has int implicitly assumed. The C standards committee decided that it was of more value for compilers to diagnose inadvertent omission of the type specifier than to silently process legacy code that relied on implicit int. In practice, compilers are likely to diagnose the omission but also assume int and continue translating the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Support by major compilers&lt;br /&gt;GCC and other C compilers now support many of the new features of C99. However, there has been less support from vendors such as Microsoft and Borland that have mainly focused on C++, since C++ provides similar functionality improvement.&lt;br /&gt;&lt;br /&gt;GCC, despite its extensive C99 support, is still not a completely compliant implementation; several key features are missing or don't work correctly.[6]&lt;br /&gt;&lt;br /&gt;According to Sun Microsystems, Sun Studio Compiler Suite (which is freely downloadable) now supports the full C99 standard.[7]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Version detection&lt;br /&gt;A standard macro __STDC_VERSION__ is defined with value 199901L to indicate that C99 support is available. As with the __STDC__ macro for C90, __STDC_VERSION__ can be used to write code that will compile differently for C90 and C99 compilers, as in this example that ensures that inline is available in either case.&lt;br /&gt;&lt;br /&gt;#if __STDC_VERSION__ &gt;= 199901L&lt;br /&gt;  /* "inline" is a keyword */&lt;br /&gt;#else&lt;br /&gt;# define inline /* nothing */&lt;br /&gt;#endif&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-5134085272613834812?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/5134085272613834812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=5134085272613834812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/5134085272613834812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/5134085272613834812'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/ansi-c-and-iso-c.html' title='ANSI C and ISO C'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-729400219856294506</id><published>2008-01-24T07:08:00.000-08:00</published><updated>2008-01-24T07:10:09.204-08:00</updated><title type='text'>C (programming language)</title><content type='html'>&lt;strong&gt;Philosophy&lt;br /&gt;C is an imperative (procedural) systems implementation language. Its design goals were for it to be compiled using a relatively straightforward compiler, provide low-level access to memory, provide language constructs that map efficiently to machine instructions, and require minimal run-time support. C was therefore useful for many applications that had formerly been coded in assembly language.&lt;br /&gt;&lt;br /&gt;Despite its low-level capabilities, the language was designed to encourage machine-independent programming. A standards-compliant and portably written C program can be compiled for a very wide variety of computer platforms and operating systems with minimal change to its source code. The language has become available on a very wide range of platforms, from embedded microcontrollers to supercomputers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Characteristics&lt;br /&gt;Like most imperative languages in the ALGOL tradition, C has facilities for structured programming and allows lexical variable scope and recursion, while a static type system prevents many unintended operations. In C, all executable code is contained within functions. Function parameters are always passed by value. Pass-by-reference is achieved in C by explicitly passing pointer values. Heterogeneous aggregate data types (struct) allow related data elements to be combined and manipulated as a unit. C program source text is free-format, using semicolon as a statement terminator (not a delimiter).&lt;br /&gt;&lt;br /&gt;C also exhibits the following more specific characteristics:&lt;br /&gt;&lt;br /&gt;non-nestable function definitions, although variables may be hidden in nested blocks &lt;br /&gt;partially weak typing; for instance, characters can be used as integers &lt;br /&gt;low-level access to computer memory by converting machine addresses to typed pointers &lt;br /&gt;function pointers allowing for a rudimentary form of closures and runtime polymorphism &lt;br /&gt;array indexing as a secondary notion, defined in terms of pointer arithmetic &lt;br /&gt;a preprocessor for macro definition, source code file inclusion, and conditional compilation &lt;br /&gt;complex functionality such as I/O, string manipulation, and mathematical functions consistently delegated to library routines &lt;br /&gt;around 30 reserved keywords &lt;br /&gt;syntax divergent from ALGOL, often following the lead of C's predecessor B, for example using &lt;br /&gt;{ ... } rather than ALGOL's begin ... end &lt;br /&gt;the equal-sign for assignment (copying), much like Fortran &lt;br /&gt;two consecutive equal-signs to test for equality (compare to .EQ. in Fortran or the equal-sign in BASIC) &lt;br /&gt;&amp;&amp; and || in place of ALGOL's and and or, which &lt;br /&gt;are syntactically distinct from the bit-wise operators &amp; and | (used by B for both meanings) &lt;br /&gt;never evaluate the right operand if the result can be determined from the left alone (short-circuit evaluation) &lt;br /&gt;a large number of compound operators, such as +=, ++, etc. &lt;br /&gt;&lt;br /&gt; History&lt;br /&gt;&lt;br /&gt;[edit] Early developments&lt;br /&gt;The initial development of C occurred at AT&amp;T Bell Labs between 1969 and 1973; according to Ritchie, the most creative period occurred in 1972. It was named "C" because many of its features were derived from an earlier language called "B", which according to Ken Thompson was a stripped down version of the BCPL programming language.&lt;br /&gt;&lt;br /&gt;The origin of C is closely tied to the development of the Unix operating system, originally implemented in assembly language on a PDP-7 by Ritchie and Thompson, incorporating several ideas from colleagues. Eventually they decided to port the operating system to a PDP-11. B's lack of functionality to take advantage of some of the PDP-11's features, notably byte addressability, led to the development of an early version of the C programming language.&lt;br /&gt;&lt;br /&gt;The original PDP-11 version of the Unix system was developed in assembly language. By 1973, with the addition of struct types, the C language had become powerful enough that most of the Unix kernel was rewritten in C. This was one of the first operating system kernels implemented in a language other than assembly. (Earlier instances include the Multics system (written in PL/I), and MCP (Master Control Program) for the Burroughs B5000 written in ALGOL in 1961.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; K&amp;R C&lt;br /&gt;In 1978, Brian Kernighan and Dennis Ritchie published the first edition of The C Programming Language. This book, known to C programmers as "K&amp;R", served for many years as an informal specification of the language. The version of C that it describes is commonly referred to as "K&amp;R C". The second edition of the book covers the later ANSI C standard.&lt;br /&gt;&lt;br /&gt;K&amp;R introduced several language features:&lt;br /&gt;&lt;br /&gt;standard I/O library &lt;br /&gt;long int data type &lt;br /&gt;unsigned int data type &lt;br /&gt;compound assignment operators =op were changed to op= to remove the semantic ambiguity created by the construct i=-10, which had been interpreted as i =- 10 instead of the possibly intended i = -10 &lt;br /&gt;Even after the publication of the 1989 C standard, for many years K&amp;R C was still considered the "lowest common denominator" to which C programmers restricted themselves when maximum portability was desired, since many older compilers were still in use, and because carefully written K&amp;R C code can be legal Standard C as well.&lt;br /&gt;&lt;br /&gt;In early versions of C, only functions that returned a non-integer value needed to be declared if used before the function definition; a function used without any previous declaration was assumed to return an integer, if its value was used.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;long int SomeFunction();&lt;br /&gt;/* int OtherFunction(); */&lt;br /&gt;&lt;br /&gt;/* int */ CallingFunction()&lt;br /&gt;{&lt;br /&gt;    long int test1;&lt;br /&gt;    register /* int */ test2;&lt;br /&gt;&lt;br /&gt;    test1 = SomeFunction();&lt;br /&gt;    if (test1 &gt; 0) &lt;br /&gt;          test2 = 0;&lt;br /&gt;    else &lt;br /&gt;          test2 = OtherFunction();&lt;br /&gt;&lt;br /&gt;    return test2;&lt;br /&gt;}&lt;br /&gt;All the above commented-out int declarations could be omitted in K&amp;R C.&lt;br /&gt;&lt;br /&gt;Since K&amp;R function declarations did not include any information about function arguments, function parameter type checks were not performed, although some compilers would issue a warning message if a local function was called with the wrong number of arguments, or if multiple calls to an external function used different numbers or types of arguments. Separate tools such as Unix's lint utility were developed that (among other things) could check for consistency of function use across multiple source files.&lt;br /&gt;&lt;br /&gt;In the years following the publication of K&amp;R C, several unofficial features were added to the language, supported by compilers from AT&amp;T and some other vendors. These included:&lt;br /&gt;&lt;br /&gt;void functions &lt;br /&gt;functions returning struct or union types (rather than pointers) &lt;br /&gt;assignment for struct data types &lt;br /&gt;enumerated types &lt;br /&gt;The large number of extensions and lack of agreement on a standard library, together with the language popularity and the fact that not even the Unix compilers precisely implemented the K&amp;R specification, led to the necessity of standardization.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-729400219856294506?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/729400219856294506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=729400219856294506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/729400219856294506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/729400219856294506'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/c-programming-language.html' title='C (programming language)'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-6065363343875500199</id><published>2008-01-24T07:03:00.000-08:00</published><updated>2008-01-24T07:08:17.225-08:00</updated><title type='text'>Codec</title><content type='html'>&lt;strong&gt; Related concepts&lt;br /&gt;An endec is a similar yet different concept mainly used for hardware. In the mid 20th century, a "codec" was hardware that coded analog signals into Pulse-code modulation (PCM) and decoded them back. Late in the century the name came to be applied to a class of software for converting among digital signal formats, and including compander functions.&lt;br /&gt;&lt;br /&gt;Codecs (in the modern, software sense) encode a stream or signal for transmission, storage or encryption and decode it for viewing or editing. Codecs are often used in videoconferencing and streaming media applications. A video camera's analogue-to-digital converter (ADC) converts its analogue signals into digital signals, which are then passed through a video compressor for digital transmission or storage. A receiving device then runs the signal through a video decompressor, then a digital-to-analogue converter (DAC) for analogue display. A "codec" is a generic name for a video conferencing unit.&lt;br /&gt;&lt;br /&gt;An audio compressor converts analogue audio signals into digital signals for transmission or storage. A receiving device then converts the digital signals back to analogue using an audio decompressor, for playback. An example of this are the codecs used in the sound cards of personal computers.&lt;br /&gt;&lt;br /&gt;The raw encoded form of audio and video data is often called essence, to distinguish it from the metadata information that together make up the information content of the stream and any "wrapper" data that is then added to aid access to or improve the robustness of the stream.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Compression quality&lt;br /&gt;Most codecs are lossy, allowing the compressed data to be made smaller than otherwise. This aids transmission across networks and storage on relatively expensive media, such as non-volatile memory and hard disk, as well as write-once read-many formats such as CD-ROM and DVD.&lt;br /&gt;&lt;br /&gt;There are also lossless codecs, but for most purposes the slight increase in quality might not be worth the increase in data size, which is often considerable. The main exception to this is if the data is to undergo further processing (for example editing) in which case the repeated application of lossy codecs (repeated encoding and subsequent decoding) will almost certainly degrade the quality of the edited file such that it is readily identifiable (visually or audibly or both). Using more than one codec or encoding scheme whilst creating a finished product can also degrade quality significantly (however there are many situations where this is all but unavoidable). The decreasing cost of storage capacity and network bandwidth may obviate the need for lossy codecs for some media over time.&lt;br /&gt;&lt;br /&gt;Codecs are often designed to emphasise certain aspects of the media to be encoded. For example, a digital video (using a DV codec) of a sports event, such as baseball or soccer, needs to encode motion well but not necessarily exact colours, while a video of an art exhibit needs to perform well encoding colour and surface texture. There are hundreds or even thousands of codecs ranging from those downloadable for free to ones costing hundreds of dollars or more. This can create compatibility and obsolescence issues. By contrast, lossless PCM audio (44.1 kHz, 16 bit stereo, as represented on an audio CD or in a .wav or .aiff file) offers more of a persistent standard across multiple platforms and over time.&lt;br /&gt;&lt;br /&gt;Many multimedia data streams need to contain both audio and video data, and often some form of metadata that permits synchronisation of audio and video. Each of these three streams may be handled by different programs, processes, or hardware; but for the multimedia data stream to be useful in stored or transmitted form, they must be encapsulated together in a container format.&lt;br /&gt;&lt;br /&gt;The widely spread notion of AVI being a codec is incorrect as AVI (nowadays) is a container format, which many codecs might use (although not to ISO standard). There are other well known alternative containers such as Ogg, ASF, QuickTime, RealMedia, Matroska, DivX, and MP4.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-6065363343875500199?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/6065363343875500199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=6065363343875500199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6065363343875500199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6065363343875500199'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2008/01/codec.html' title='Codec'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-1609660497197074540</id><published>2007-12-24T01:06:00.000-08:00</published><updated>2007-12-24T01:09:49.303-08:00</updated><title type='text'>AddCriteria Simplifies SQL Queries</title><content type='html'>&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Introduction&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;Occasionally one discovers a subroutine that greatly simplifies a complex ASP page, transforming spaghetti-like code into something that is easy to maintain. In this article I share one such function used when I need to produce an SQL query from a number of optional criteria posted by the user.&lt;br /&gt;Building an SQL string from optionally posted criteria is tricky. You need to check if the user posted a value since only then is the criteria included in the query. Numeric entries are different from character entries and multiple-selection fields require additional processing to produce a valid SQL query. Fields that might contain single quotes need special attention to prevent syntax errors.&lt;br /&gt;The AddCriteria function (listed later) elegantly encapsulates the logic to build an SQL statement by adding optional criteria only if the user posted data for a field. Here is an example of how one would use it:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="font-size:130%;"&gt;The Code&lt;/span&gt;&lt;br /&gt;SQL="select * from DataTable"&lt;br /&gt;SQL=AddCriteria(SQL,"Status","=","Status","Chr")&lt;br /&gt;SQL=AddCriteria(SQL,"PCode","=","Code","Num")&lt;br /&gt;SQL=AddCriteria(SQL,"Price","&gt;","LowPrice","Num")&lt;br /&gt;SQL=AddCriteria(SQL,"Price","&lt;","HighPrice","Num")&lt;br /&gt;SQL=AddCriteria(SQL,"Category","in","Catg","Num")&lt;br /&gt;SQL=AddCriteria(SQL,"City","in","City","Chr")&lt;br /&gt;SQL=AddCriteria(SQL,"Name","like","Name","Chr")&lt;br /&gt;The&lt;br /&gt;SQL query is started by specifying everything up to the Where clause. Then the&lt;br /&gt;AddCriteria function is used to assemble optionally posted values and append it&lt;br /&gt;to the SQL expression. The AddCriteria parameters are almost self-explanatory:&lt;br /&gt;Parameter 1: The SQL expression as constructed thus far.Parameter 2: The&lt;br /&gt;database field name for this criterion. Parameter 3: The SQL comparison operator&lt;br /&gt;for this criterion.Parameter 4: The form field name of the posted value.&lt;br /&gt;Parameter 5: The database field's data type: numeric (Num) or character (Chr).&lt;br /&gt;If one posted the following data to a page containing the code snippet&lt;br /&gt;above, the following SQL statement would be generated: Posted&lt;br /&gt;Data:Status=A&amp;amp;HighPrice=5&amp;amp;Catg=101&amp;amp;Catg=203&amp;amp;Name=Edward&lt;br /&gt;SQL&lt;br /&gt;Produced:select * from DataTable&lt;br /&gt;where&lt;br /&gt;Status = 'A' and Price &lt; 5 and&lt;br /&gt;Category in (101,203) and Name like '%Edward%'&lt;br /&gt;Here is the source code for&lt;br /&gt;the AddCriteria function:&lt;br /&gt;Function&lt;br /&gt;AddCriteria(SQL,DBField,Comparison,FormFld,DataType)&lt;br /&gt;Dim&lt;br /&gt;Value,Val,ValArray,ClauseStyle,Connector&lt;br /&gt;&lt;br /&gt;AddCriteria=SQL&lt;br /&gt;Value=Request.QueryString(FormFld)&lt;br /&gt;if len(Value)=0 then Exit Function&lt;br /&gt;Comparison=trim(Comparison)&lt;br /&gt;DataType=trim(DataType)&lt;br /&gt;ClauseStyle=ucase(Comparison&lt;br /&gt;&amp;amp; ":" &amp;amp; DataType)&lt;br /&gt;&lt;br /&gt;select case ClauseStyle&lt;br /&gt;case "=:CHR"&lt;br /&gt;Value="'" &amp;amp; Replace(Value,"'","''") &amp;amp; "'"&lt;br /&gt;&lt;br /&gt;case "=:NUM",&lt;br /&gt;"&gt;:NUM", "&lt;:NUM"&lt;br /&gt;if (not isNumeric(Value)) then Value=0&lt;br /&gt;&lt;br /&gt;case&lt;br /&gt;"IN:CHR"&lt;br /&gt;Value=Replace(Value,",&lt;br /&gt;",",")&lt;br /&gt;Value=Replace(Value,"'","''")&lt;br /&gt;Value="('" &amp;amp;&lt;br /&gt;Replace(Value,",","','") &amp;amp; "')"&lt;br /&gt;&lt;br /&gt;case&lt;br /&gt;"IN:NUM"&lt;br /&gt;ValArray=split(Value,",")&lt;br /&gt;Value=""&lt;br /&gt;for each Val in&lt;br /&gt;ValArray&lt;br /&gt;if isNumeric(Val) then Value=Value &amp;amp; "," &amp;amp;&lt;br /&gt;trim(Val)&lt;br /&gt;next&lt;br /&gt;if len(Value)&lt; 2 then Exit Function&lt;br /&gt;Value=Mid(Value,2) '** remove leading comma&lt;br /&gt;Value="(" &amp;amp; Value &amp;amp;&lt;br /&gt;")"&lt;br /&gt;&lt;br /&gt;case "LIKE:CHR"&lt;br /&gt;Value="'%" &amp;amp; Replace(Value,"'","''") &amp;amp;&lt;br /&gt;"%'"&lt;br /&gt;&lt;br /&gt;case else&lt;br /&gt;Err.Raise 1,"Function AddCriteria",_&lt;br /&gt;("Missing case&lt;br /&gt;for '" &amp;amp; ClauseStyle &amp;amp; "'")&lt;br /&gt;end select&lt;br /&gt;&lt;br /&gt;Connector=" where " '**&lt;br /&gt;for first criterion only&lt;br /&gt;if 0&lt;/strong&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-1609660497197074540?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/1609660497197074540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=1609660497197074540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/1609660497197074540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/1609660497197074540'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/addcriteria-simplifies-sql-queries.html' title='AddCriteria Simplifies SQL Queries'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-8078324418969560455</id><published>2007-12-24T01:00:00.000-08:00</published><updated>2007-12-24T01:05:13.064-08:00</updated><title type='text'>certification exam</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Are you interested in passing a popular IT certification exam? Do you want to increase your salary? Get a Promotion or New Senior Position? Get Hired for a new job? Gain a better understanding of new and emerging technologies that are shaping our world and our future? Capture a foothold in the most explosive industry known as IT or Information Technology? Then it is absolutely critical that you learn the knowledge and skills needed to advance in this IT industry NOW, with proper certification training solutions.&lt;br /&gt;Pass-Guaranteed.com offers leading edge certification training solutions for all IT Certifications like Microsoft®'s MCSE®, MCSA®, MCDBA®, Cisco®'s CCNA®, CCDA®, CCNP®, CCDP®, CCIP®, CCSP®, CCIE® WRITTEN/LAB, SUN® JAVA®, SOLARIS®, ORACLE®8i or 9i DBA®, CompTIA®, A+®, i-NET+®, CISSP®, NETWORK+®, HP®, NOVELL®, CHECK POINT® etc. &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;4 example ::&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;if u wanna : Exam 70-210 Practice Test with Full Explanations Includes:&lt;br /&gt;Comprehensive Practice Test Questions with Full Explanations&lt;br /&gt;Detailed Explanations of all the questions&lt;br /&gt;Practice Test Questions accompanied by exhibits&lt;br /&gt;Verified Answers Researched by Industry Experts&lt;br /&gt;Drag and Drop questions as experienced in the Actual Exams&lt;br /&gt;Practice Test Questions with Explanations updated on regular basis&lt;br /&gt;Our Practice Test Questions with Explanations are backed by our 100% MONEY BACK GUARANTEE.&lt;br /&gt;Like actual certification exams, our Practice Tests with Explanations are in multiple-choice (MCQs) &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;just tell me :)&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-8078324418969560455?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/8078324418969560455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=8078324418969560455' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8078324418969560455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8078324418969560455'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/certification-exam.html' title='certification exam'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-3286517416276190431</id><published>2007-12-24T00:56:00.000-08:00</published><updated>2007-12-24T00:59:02.105-08:00</updated><title type='text'>assemble</title><content type='html'>&lt;strong&gt;Assembler   &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;8086 Assembler Implemented in C++ v0.1&lt;br /&gt;This program is an assembler capable of executing most of the 8086 assembly programs. You can also check out the list file &lt;filename&gt;.lst, very similar to TASM list file. The intention of uploading this project is to let you have a general idea of how an assembler works.  &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;A86 macro assembler, V3.72&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;African Assembler (ASM++) v7.3&lt;br /&gt;The African assembler by Tinashe Mutandagayi,19 Zimbabwe Which now supports omf16 and 32 objects and can also produce mz exes and .coms &lt;br /&gt; &lt;br /&gt;BBC BASIC for Windows 4.00&lt;br /&gt;BBC BASIC for Windows is an implementation of the BBC BASIC programming language for PCs running Microsoft Windows. It combines the simplicity of BASIC with the sophistication of a modern structured language, allowing you to write utilities and games, use sound and graphics, perform calculations an...  &lt;br /&gt;&lt;br /&gt;CodeX Assembler v1.0&lt;br /&gt;CodeX Assembler is a Freeware x86 assembler supporting all x86 instruction sets up to SSE2 (AMD 3D Now! also included) with an integrated linker that creates 16 and 32 bit flat model binaries, 16 bit DOS COM and EXE files as well as 32 bit DOS applications. The assembler provides numerous specia.. &lt;br /&gt;&lt;br /&gt;flat assembler 1.64 for Windows&lt;br /&gt;This is a Windows version of flat assembler - apart from the command line version for Windows console this package contains the one with integrated syntax-highlighting editor, so you can edit, compile and execute your programs from one place. It also contains the set of includes with equates &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-3286517416276190431?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/3286517416276190431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=3286517416276190431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/3286517416276190431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/3286517416276190431'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/assemble.html' title='assemble'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-4716545664634106192</id><published>2007-12-22T13:03:00.000-08:00</published><updated>2007-12-22T13:04:27.215-08:00</updated><title type='text'>CODE (programming language)</title><content type='html'>&lt;strong&gt;CODE is a visual programming language and system for parallel programming, letting users compose sequential programs into parallel ones. The parallel program is a directed graph, where data flows on arcs linking the nodes representing the sequential programs. The sequential programs may be written in any language, and CODE outputs parallel programs for a variety of architectures, as its model is architecture independent&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-4716545664634106192?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/4716545664634106192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=4716545664634106192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/4716545664634106192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/4716545664634106192'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/code-programming-language.html' title='CODE (programming language)'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-7167055201866418225</id><published>2007-12-22T12:58:00.000-08:00</published><updated>2007-12-22T13:00:27.612-08:00</updated><title type='text'>Source code</title><content type='html'>In computer science, source code (commonly just source or code) is any sequence of statements and/or declarations written in some human-readable computer programming language.&lt;br /&gt;&lt;br /&gt;The source code which constitutes a program is usually held in one or more text files, sometimes stored in databases as stored procedures and may also appear as code snippets printed in books or other media. A large collection of source code files may be organized into a directory tree, in which case it may also be known as a source tree.&lt;br /&gt;&lt;br /&gt;A computer program's source code is the collection of files needed to convert from human-readable form to some kind of computer-executable form. The source code may be converted into an executable file by a compiler, or executed on the fly from the human readable form with the aid of an interpreter.&lt;br /&gt;&lt;br /&gt;The code base of a programming project is the larger collection of all the source code of all the computer programs which make up the project.&lt;br /&gt;&lt;br /&gt;The source code for a particular piece of software may be contained in a single file or many files. A program's source code is not necessarily all written in the same programming language; for example, it is common for a program to be written primarily in the C programming language, with some portions written in Assembly language for optimization purposes. It is also possible for some components of a piece of software to be written and compiled separately, in an arbitrary programming language, and later integrated into the software using a technique called library linking. In some languages, such as Java, this is essentially how each file is handled; each is compiled separately and linked at runtime. Yet another method is to make the main program an interpreter for a programming language, either designed specifically for the application in question or general-purpose, and then write the bulk of the actual user functionality as macros or other forms of add-ins in this language, an approach taken for example by the GNU Emacs text editor.&lt;br /&gt;&lt;br /&gt;Moderately complex software customarily requires the compilation or assembly of several, sometimes dozens or even hundreds, of different source code files. This complexity is reduced considerably by the inclusion of a Makefile with the source code, which describes the relationships among the source code files, and contains information about how they are to be compiled. The revision control system is another tool frequently used by developers for source code maintenance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-7167055201866418225?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/7167055201866418225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=7167055201866418225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/7167055201866418225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/7167055201866418225'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/source-code.html' title='Source code'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-8724341068254190746</id><published>2007-12-21T06:55:00.000-08:00</published><updated>2007-12-21T06:58:08.585-08:00</updated><title type='text'>ANTIVIRUS  &amp;  smart .....</title><content type='html'>&lt;strong&gt;share ur opininon about ur antivirus also let us develop it :)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;good idea good feel :)&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-8724341068254190746?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/8724341068254190746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=8724341068254190746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8724341068254190746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/8724341068254190746'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/antivirus-smart.html' title='ANTIVIRUS  &amp;  smart .....'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-4959069026904716706</id><published>2007-12-20T12:30:00.000-08:00</published><updated>2007-12-20T12:32:45.767-08:00</updated><title type='text'>new codes</title><content type='html'>add new codes is allowed plz if u have ... :)&lt;br /&gt;&lt;br /&gt;thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-4959069026904716706?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/4959069026904716706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=4959069026904716706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/4959069026904716706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/4959069026904716706'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/new-codes.html' title='new codes'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-6597806791772720851</id><published>2007-12-14T06:46:00.001-08:00</published><updated>2007-12-14T06:49:46.156-08:00</updated><title type='text'>Forget Controls MultiMedia. Now By API Support DVD Video Version 6.1</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_uiPBNkTt_NI/R2KXkiI-5sI/AAAAAAAAAAM/ZumElwKyRjk/s1600-h/PIC2000816175241286.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5143840378306094786" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_uiPBNkTt_NI/R2KXkiI-5sI/AAAAAAAAAAM/ZumElwKyRjk/s320/PIC2000816175241286.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Forget Controls MultiMedia. Now By API Support DVD Video Version 6.1&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;(New version, now version 6.1 with control volume channels audio) Hello, You can here make Controls for audio,video and midi files just by pure Windows API. you can open,play,pause,resume,stop,close,make control for audio channels,Get Progress,Get Total Time,Get Total frames,Get Number frames per second,SetAutoRepeat,GetCurrent frame (Get current position),Get cuurent time,Get Actual size,Get Current Size,resize the movie,SetDefaultDevice,let you at the end of file..for all types Multimedia qt,mov, dat,snd, mpg, mpa, mpv, enc, m1v, mp2,mp3, mpe, mpeg, mpm au,snd, aif, aiff, aifc,wav,avi,mid,rmi,(and *.vob this format for dvd video)...etc.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;Are you Sure wanna using Windows API to Playing video *.dat) or audio (including (including *.mpg and *.mp3) or Midi files and forget ocx?Then Download this source.&lt;br /&gt;I know the Controls like MCI32.ocx, ActiveMovie and Media player can do this but the control have disadvantages like it size about more than 90 kb,but now your program just will increased 6 kilo bytes(this size of the Module) and not take system resources.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;Advantages for this Source Code&lt;br /&gt;1-This code Just use Windows API calls (no ocx) ,no install new dll.&lt;br /&gt;2-This code work useful for Windows98,Windows 2000 and Windows NT without installing any other programs.&lt;br /&gt;3-It has ready functions in the Module or Dll for Standerd use just for copy and paste in your own projects.&lt;br /&gt;4-More faster than WinAmp and Xing Mpeg in playing and viewing Movie.&lt;br /&gt;5-It can playing all Multimedia files by less lines included mp3,mpg,avi,wav..etc.&lt;br /&gt;6-It has the most controls for multimedia files(keep on reading the page and you will know the controls).&lt;br /&gt;7-It can open all movie files.&lt;br /&gt;8-It have descriptions.&lt;br /&gt;9-It Include four Sources in the zip (three for vb and dll in C++).&lt;br /&gt;10-It for all Levels (advanced - intermediate - beginner).&lt;br /&gt;11-very easy (read the code carefully).&lt;br /&gt;12-Others (keep on reading this page).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;This code Updated to be more well Download it again&lt;br /&gt;Please reRead the descriptions for function OpenMultimedia in the form or in the Module.&lt;br /&gt;Version 6.1&lt;br /&gt;Special thanks to "Hans de Vries" For Notice me about bug when playing rmi files in some computers (it was repaired).&lt;br /&gt;Version 6.0&lt;br /&gt;For request Members planet-source-code I add four Functions:&lt;br /&gt;1-Two Functions to deal with volume audio for every channel(left or right) or the the both:&lt;br /&gt;one to get volume for every channel audio and the another to set volume for every channel or the both.&lt;br /&gt;NOTE: Contolling with volume for every Multimedia file not for all Multimedia files(not like Mixer windows).&lt;br /&gt;2-Two Functions to deal with Rate playing Multimedia file (one to increase speed playing or decrease speed playing and the another to get current Rate).&lt;br /&gt;NOTE: Contolling with Rate for every Multimedia file not for all Multimedia files.&lt;br /&gt;Via this version you can watch a movie file and also playing mp3 file at the same time and decrease the volume for mp3 in one channel or the both.&lt;br /&gt;See the screenshot.&lt;br /&gt;Good luke.&lt;br /&gt;Version 5.0&lt;br /&gt;1-In this version there were common errors in Windows 2000 was repaired (now the code useful for win2000).&lt;br /&gt;2-I added Function for Channels Audio Control (see the screenshot).&lt;br /&gt;What the Advantages for this Update?&lt;br /&gt;you can here play on Left channel audio file and on right channel another audio file at the same time Or:&lt;br /&gt;play the file two times at the same time one on the left and the another on the right.&lt;br /&gt;Click on buttons "Demo" to see some effect by this way.&lt;br /&gt;Note: you must Extract all files from the zip.&lt;br /&gt;Good luke.&lt;br /&gt;(Update IIII)&lt;br /&gt;there were some common errors in Windows NT4 was repaired (Special thanks to Alex for notice me)&lt;br /&gt;and I added function for request memebers to get the actual size and current size.&lt;br /&gt;Note the update just in source "MultiMedia Contoller"&lt;br /&gt;(Update III)&lt;br /&gt;I added the source code which sent to MSDN library and it Update for previous version from "Pure API".&lt;br /&gt;What the Advantages for this Update?&lt;br /&gt;It can open more than one Multimedia file at the same time and play it .&lt;br /&gt;e.g.&lt;br /&gt;(you can play more than one mp3 or movie at the same time).&lt;br /&gt;Important note: You can play a lot files at same time if it from type "MPEGVideo" this mean just the following types you can play it altogther :&lt;br /&gt;qt,mov, dat,snd, mpg, mpa, mpv, enc, m1v, mp2,mp3, mpe, mpeg, mpm au,snd, aif, aiff, aifc,wav,,etc.&lt;br /&gt;and the following types can not play altogether :&lt;br /&gt;mid,rmi,avi. becsause the sound card will be busy.&lt;br /&gt;anyway most peoples using mpg,dat,mov,etc for the movie and mp3,mp2,mp1,wav,etc for the audio and if you have movie (avi) you can convert it to mpg ,dat ,mov or any other mpegs types and play it altogther.&lt;br /&gt;if you wanna the ways to convert avi to mpegs types please contact to me at : a_ahdal@yahoo.com&lt;br /&gt;this will benefit you if you wanna make some simple games,,etc.&lt;br /&gt;see the picture in this page to show the program.&lt;br /&gt;(UPDATE II)&lt;br /&gt;I added two Functions one to Get Frames per Second&lt;br /&gt;and the Another to let you know if the File Multimedia at the End (this benefit you if you wanna play a list of Multimedia Files).&lt;br /&gt;(UPDATE I)&lt;br /&gt;You can by this update to open any file even have spaces.(Special Thanks to Janet)&lt;br /&gt;And I added two Functions to repair any problem will met you if you used Xing Mpeg Drivers.&lt;br /&gt;You can here Play all MultiMeida Files by Pure API&lt;br /&gt;in first if you wanna playing these types:qt , mov, dat,snd, mpg, mpa, mpv, enc, m1v, mp2,mp3, mpe, mpeg, mpmau , snd, aif, aiff, aifc,wav.The Secret is:You Must use when you write Command To MCI by FunctionmciSendString write like this :open c:\myfile type MpegVideo .......etcnote: we written "MpegVideo" as a typeand we will writtenopen c:\myfile type AviVideo .......etcif we wanna opening avi files..&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-6597806791772720851?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/6597806791772720851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=6597806791772720851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6597806791772720851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6597806791772720851'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/forget-controls-multimedia-now-by-api.html' title='Forget Controls MultiMedia. Now By API Support DVD Video Version 6.1'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uiPBNkTt_NI/R2KXkiI-5sI/AAAAAAAAAAM/ZumElwKyRjk/s72-c/PIC2000816175241286.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-519029868721764312</id><published>2007-12-14T05:37:00.000-08:00</published><updated>2007-12-14T05:38:18.130-08:00</updated><title type='text'>FRIEND SHIP</title><content type='html'>&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;hello every body i will make friend ship with me 4 any one wanna that to make easy learn programming language&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-519029868721764312?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/519029868721764312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=519029868721764312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/519029868721764312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/519029868721764312'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/friend-ship.html' title='FRIEND SHIP'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-6646623030973940626</id><published>2007-12-14T05:31:00.000-08:00</published><updated>2007-12-14T05:32:04.639-08:00</updated><title type='text'>wellcome</title><content type='html'>&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;wellcome&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;hello every body&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;plz mail me at my e.mail or let comment if u want that &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;:)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-6646623030973940626?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/6646623030973940626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=6646623030973940626' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6646623030973940626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/6646623030973940626'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/wellcome.html' title='wellcome'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5651519061817228881.post-5540674196097277915</id><published>2007-12-14T05:28:00.000-08:00</published><updated>2007-12-14T05:30:17.719-08:00</updated><title type='text'>code 1</title><content type='html'>&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;u wanna learn code??&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;v.basic or c++ or c#&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;just see us every day i will start make u learn this &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;that is easy just see what i will do 4 u?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;that is all 4 free man :)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;yes that is 4 free :)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5651519061817228881-5540674196097277915?l=livefreecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://livefreecode.blogspot.com/feeds/5540674196097277915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5651519061817228881&amp;postID=5540674196097277915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/5540674196097277915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5651519061817228881/posts/default/5540674196097277915'/><link rel='alternate' type='text/html' href='http://livefreecode.blogspot.com/2007/12/code-1.html' title='code 1'/><author><name>fox</name><uri>http://www.blogger.com/profile/04288837842237810632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
