<?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-15440568</id><updated>2012-01-13T11:25:19.632-08:00</updated><category term='Pointers in c++'/><category term='C++'/><category term='Dictionary in C++'/><category term='Pointers'/><category term='Memory Management'/><category term='C++ projects for practice'/><category term='File extensions'/><title type='text'>THE  C++ BLOG</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15440568.post-2484868824441767806</id><published>2009-02-14T05:22:00.000-08:00</published><updated>2009-02-25T10:48:22.492-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File extensions'/><title type='text'>File extensions - a confusing affair</title><content type='html'>Did you wonder what "&lt;a href="http://www.computerfileextensions.com/"&gt;.GOOK&lt;/a&gt;" and "&lt;a href="http://www.computerfileextensions.com/"&gt;.GIFAR&lt;/a&gt;" could mean? nope, you didn't!! But as a geek you need to know all the exotic extensions..&lt;br /&gt;I got into this mess when I installed a script editor and it changed the default setting for a host of my other files like .xml and .class files. The next time I tried to compile and view my code, I got a response that no suitable program to open such extension found!&lt;br /&gt;Loads of hours on the internet later I found this great site that has a &lt;a href="http://www.computerfileextensions.com/"&gt;registry fixer software&lt;/a&gt;. My recommendation - install this software asap  - it even fixed my &lt;span&gt;&lt;a href="http://www.computerfileextensions.com/file-extensions.php/BIN"&gt;File Extension BIN&lt;/a&gt; that had started pointing to different places.. I use Avira anti-virus software which also uses BIN file extension and this extension is so very common but when I forgot to uncheck "always use this program to open this kind of file" on the Open With dialogue, I struck disaster..&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;This registry fixer software is just great. All registry errors fixed now.. and I can go on with my coding without worrying about how to fix my registry files :)&lt;br /&gt;&lt;br /&gt;If you want to know about the full forms and which company devised the file formats then that information is too very nicely given here..&lt;br /&gt;One very interesting trivia I found about &lt;a href="http://www.computerfileextensions.com/file-extensions.php/BIN"&gt;BIN&lt;/a&gt; files here is that they can be opened in 12 different ways.. that means there are 12 different uses of the same file format.&lt;br /&gt;&lt;br /&gt;You can also&lt;a href="http://www.computerfileextensions.com/"&gt; get info about file extensions&lt;/a&gt; through the alphabetical file index on the same site. :p&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-2484868824441767806?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/2484868824441767806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=2484868824441767806' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/2484868824441767806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/2484868824441767806'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2009/02/file-extensions-confusing-affair.html' title='File extensions - a confusing affair'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-5511105917889631773</id><published>2008-08-11T07:18:00.000-07:00</published><updated>2008-08-11T07:46:19.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dictionary in C++'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>Implementing Dictionary in C++</title><content type='html'>Working with C#, I loved the feature of the data-type : Dictionary. I was wondering how we can implement a Dictionary in C++.&lt;br /&gt;&lt;br /&gt;Heres what could be a way out...&lt;br /&gt;&lt;br /&gt;1. Following the C# implementation as the model, we create a class having two elements : key and value, and implement it as a doubly linked-list. This will optimize structure parsing of the dictionary.&lt;br /&gt;&lt;br /&gt;2. We can use Templates to make it a case with generic key and value types.&lt;br /&gt;&lt;br /&gt;3. Another internal optimization would be to use hash.&lt;br /&gt;&lt;br /&gt;4.  Sort the dictionary based on the key values.&lt;br /&gt;&lt;br /&gt;5. Provide functions to set and unset key-value pair.&lt;br /&gt;   --As I noticed that dictionary is immutable during access, provide a stack say _keys_to_delete on top of which we can push the keys of entries to be deleted. Implement a garbage collection of sorts that runs a loop to delete the entries based on the keys found in the stack _keys_to_delete after the dictionary has finished iterative access (so that it again becomes mutable)...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-5511105917889631773?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/5511105917889631773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=5511105917889631773' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/5511105917889631773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/5511105917889631773'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/08/implementing-dictionary-in-c.html' title='Implementing Dictionary in C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-709736469470486431</id><published>2008-07-21T13:24:00.000-07:00</published><updated>2008-08-08T13:29:29.961-07:00</updated><title type='text'>Missing The 'String' data type in C++</title><content type='html'>After working with languages like Java and C# for some time, one tends to assume to comfort of the 'String' data type. Coming back to some hard-core programming in C++ after some time, I wished that C++ be evolved into something that is more programmer friendly but at the same time maintains the speed and efficiency that is currently provides..&lt;br /&gt;&lt;br /&gt;With many OpenSource and other wise initiatives to use modern languages for high-end development like in writing the new-gen OSes, the forte of C++, pointers, seems to be a mixed blessing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-709736469470486431?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/709736469470486431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=709736469470486431' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/709736469470486431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/709736469470486431'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/08/missing-string-data-type-in-c.html' title='Missing The &apos;String&apos; data type in C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-6501139989786128757</id><published>2008-03-15T08:19:00.000-07:00</published><updated>2008-08-09T13:46:10.787-07:00</updated><title type='text'>Overloading the NEW operator - Part II</title><content type='html'>The NEW operator has, among many advantages, then ability to be overloaded class-wise. In other words, you can overload the NEW operator on a per-class basis, so that your new operator is specifically tailored to respond to what type of object you are applying the NEW operator to.&lt;br /&gt;&lt;br /&gt;So you can overload the NEW operator for each class to perform in special situations like handling the case when memory runs out and so on..&lt;br /&gt;&lt;br /&gt;Sample code:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family: lucida grande;"&gt;class myClass&lt;br /&gt;{&lt;br /&gt;    char abc;&lt;br /&gt;    int def;&lt;br /&gt;    public:&lt;br /&gt;    void *operator new(size_t bytes)&lt;br /&gt;    {&lt;br /&gt;      .....specific code.......&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;class otherClass&lt;br /&gt;{&lt;br /&gt;    char a;&lt;br /&gt;    int b;&lt;br /&gt;    public:&lt;br /&gt;    void *operator new(size_t bytes)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family: lucida grande;"&gt;    {&lt;br /&gt;          .....specific code.......&lt;br /&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family: lucida grande;"&gt;};&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;    myClass obj1= new myClass();&lt;br /&gt;    otherClass obj2 = new otherClass();&lt;br /&gt;    .......................&lt;br /&gt;    .......................&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-6501139989786128757?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/6501139989786128757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=6501139989786128757' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/6501139989786128757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/6501139989786128757'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/03/overloading-new-operator-part-ii.html' title='Overloading the NEW operator - Part II'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-8883321782188002733</id><published>2008-03-06T08:11:00.000-08:00</published><updated>2008-08-09T08:18:59.589-07:00</updated><title type='text'>Overloading the NEW and DELETE operators in C++</title><content type='html'>Operator Overloading - One of the important pillars of the Object Oriented Concept is a very useful tool in the hands of the right programmer.&lt;br /&gt;&lt;br /&gt;The fact that you can even Overload the NEW operator and the DELETE operator as well adds convenience to the custom memory management.&lt;br /&gt;&lt;br /&gt;1. Overloading the NEW Operator:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family: lucida grande;"&gt;void *operator new(size_t size, int setvalue)&lt;br /&gt;{&lt;br /&gt;    void *pointer;&lt;br /&gt;&lt;br /&gt;    p = malloc(size);&lt;br /&gt;    if(p==NULL)&lt;br /&gt;        outofMemory( );&lt;br /&gt;    memset(pointer,setvalue,size);&lt;br /&gt;    return(p);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void outofMemory( )&lt;br /&gt;{&lt;br /&gt;    cout&lt;&lt;"OOPS ran out of free memory..";&lt;br /&gt;    exit(1);&lt;br /&gt;    {.....perform other memory freeing operations here and try to re-allocate the memory....}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-8883321782188002733?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/8883321782188002733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=8883321782188002733' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8883321782188002733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8883321782188002733'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/03/overloading-new-and-delete-operators-in.html' title='Overloading the NEW and DELETE operators in C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-4382571199502310010</id><published>2008-03-01T09:58:00.000-08:00</published><updated>2008-08-09T08:09:42.720-07:00</updated><title type='text'>To set the _new_handler pointer to default</title><content type='html'>In my last post, I talked about using the _new_handler pointer.. one thing I forgot to mention was to un-set the _new_handler pointer back to default value after pointing it to a user defined function.&lt;br /&gt;&lt;br /&gt;For that, use -&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:lucida grande;" &gt;set_new_handler(0);&lt;br /&gt;&lt;br /&gt;This will return the pointer to its default state containing NULL.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-4382571199502310010?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/4382571199502310010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=4382571199502310010' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/4382571199502310010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/4382571199502310010'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/08/to-set-newhandler-pointer-to-default.html' title='To set the _new_handler pointer to default'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-8698785598986570272</id><published>2008-02-26T07:24:00.000-08:00</published><updated>2008-08-09T07:56:14.619-07:00</updated><title type='text'>What to do when your C++ memory underruns..</title><content type='html'>While playing with Pointers, the worst fears of any programmer are underruns and overflows....&lt;br /&gt;&lt;br /&gt;But there is a very elegant solution to memory exhaustion in C++, wont provide you more memory but will at-least ensure that this exception is well handled..Here is the way out..&lt;br /&gt;&lt;br /&gt;Suppose that your &lt;span style="font-weight: bold;"&gt;new operator&lt;/span&gt; used for creating new objects in the memory &lt;span style="font-style: italic;"&gt;runs out of free memory &lt;/span&gt;so what to do then?&lt;br /&gt;&lt;br /&gt;C++ has an internal function pointer called the &lt;span style="font-style: italic;"&gt;_new_handler. &lt;/span&gt;Usually it contains a NULL which is returned by new operator when it fails to allocate memory for the requested object.&lt;br /&gt;Now there is another special construct called the &lt;span style="font-style: italic;"&gt;set_new_handler &lt;/span&gt;( ) that lets you set the _new_handler to point to a user defined function which will be called in-case the new operator fails to allocate the memory. So that particular function will be called when such a case occurs.&lt;br /&gt;&lt;br /&gt;Here is a code snippet to explain better:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: lucida grande;"&gt;&lt;span style="font-style: italic;"&gt;void main( )&lt;br /&gt;{&lt;br /&gt;    void outpfMemory( );&lt;br /&gt;    set_new_handler(outofMemory);&lt;br /&gt;   &lt;br /&gt;    char *pointer = new char[..some large value like 64000u...];&lt;br /&gt;}&lt;br /&gt;void outofMemory( )&lt;br /&gt;{&lt;br /&gt;    cout&lt;&lt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: lucida grande;"&gt;&lt;span style="font-style: italic;"&gt;OOPS &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: lucida grande;"&gt;&lt;span style="font-style: italic;"&gt;Ran out of memory..";&lt;br /&gt;    exit(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The function outofMemory will be called when the char Pointer assignment fails due to lack to available memory in the free store.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-8698785598986570272?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/8698785598986570272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=8698785598986570272' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8698785598986570272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8698785598986570272'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/02/what-to-do-when-your-c-memory-underruns.html' title='What to do when your C++ memory underruns..'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-8494570353898824202</id><published>2008-02-19T07:08:00.000-08:00</published><updated>2008-08-09T07:20:13.859-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers in c++'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><category scheme='http://www.blogger.com/atom/ns#' term='Memory Management'/><title type='text'>The C++ Memory Free Store</title><content type='html'>It is a concept that is very conveniently skipped while learning C++ at the beginner's level. Having used the 'new' and 'delete' operators, it is imperative to understand how the C++ memory is managed.&lt;br /&gt;&lt;br /&gt;1. What does the 'new' operator actually do??&lt;br /&gt;&lt;br /&gt;Ans. It basically does two things - allocate memory for the new object and call the constructor of that object and thereby in effect 'create' the object.&lt;br /&gt;&lt;br /&gt;The C++ Memory Heap a.k.a the 'free-store' is used to assign chunks of memory size as requested by each constructor that is called by the 'new' operator on that object.&lt;br /&gt;&lt;br /&gt;In comparison to the malloc() function, the new operator returns a type-safe pointer while th malloc() return a pointer of type 'void' which needs to be explicity type-casted by the programmer.&lt;br /&gt;&lt;br /&gt;For the special case when the memory store available with the free store is exhausted, we can test if the new operator returns a NULL.. But there is a more elegant way to handle this case.. look for my next post on how to handle the situation of free store exhuastion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-8494570353898824202?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/8494570353898824202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=8494570353898824202' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8494570353898824202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/8494570353898824202'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/08/c-memory-free-store.html' title='The C++ Memory Free Store'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-7837765816330942806</id><published>2008-01-29T10:47:00.000-08:00</published><updated>2008-01-29T11:02:24.085-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++ projects for practice'/><title type='text'>Some project ideas in C++</title><content type='html'>Here is a collection of project ideas that can be easily implemented in c++ to try your hands at the game.. I will list them in order of difficulty (low to high)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Basic operator overloading - try creating as many as possible combinations of function name and rest of the function signature - purely syntactical exercise.&lt;/li&gt;&lt;li&gt;Create a function that can convert an "int" type into a "string" containing the Binary representation and vice-versa.&lt;/li&gt;&lt;li&gt;Implement a rotated array solver - a rotated array means the elements of a "sorted" array are rotated and wrapped around from last position to 0th by rotating factor - 'r'&lt;/li&gt;&lt;ol&gt;&lt;li&gt;So after rotation, the &lt;span style="font-weight: bold;"&gt;array's element Ai will be at ( ( i + r ) % arraylength ).&lt;/span&gt; Now suppose you are given such an array, which is already rotated by some unknown rotation factor - 'r', create a function to bring the array to original sorted form without using sorting directly. Keep in mind performance parameters in terms of speed and memory and elegance of code.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-7837765816330942806?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/7837765816330942806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=7837765816330942806' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/7837765816330942806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/7837765816330942806'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2008/01/some-project-ideas-in-c.html' title='Some project ideas in C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-115675763215041846</id><published>2006-08-28T01:30:00.000-07:00</published><updated>2006-08-28T02:35:36.253-07:00</updated><title type='text'>A sneak peek on Data Structures</title><content type='html'>&lt;span style="font-style: italic;"&gt;Data Stuctures...hmm when i started writing this post i thought why am i jumping to data structures so early? But then i thought since i was being a lazy bum for quite a while so why not Data structures; it's better than nothing! (and i can't not think of anything else  at the moment)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;So , Data structures are here... The first question that one might ask is; seemingly what are data structures?? But there is an obvious answer in the name of the topic itself!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Data- it means any set of raw values in any format which we are interested in so that we can collectively process it to yield useful information! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Structure- it means any way of organizing. Be it data, variables or any heirarchy! It can be anything. Did you know that orgzanizing residential space can also be considered a sturcture, of course, high rise buildings are called super-structures in general terms..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ok, so we have data and structures; 1+1=2. Yes, it is as simple as that! Organizing data according to specific parameters to yield useful information is creating a data structure.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Types: Some simple types are- Que, Linked list, Stack, Circular que, Tree etc;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;p&gt;-&gt; que is simple, its just like data standing in line, with the first data packet getting processed first.&lt;br /&gt;-&gt; Linked list; when one data packet links to other, it is called a linked list. Its like elephants moving in circus holding each others' tail. ;)&lt;br /&gt;-&gt; Stack, just like plates stacked on top of each other.&lt;br /&gt;-&gt; Circular cue; what starts also ends at the same point.&lt;br /&gt;-&gt; Tree; the first thing that comes to  one's mind when they  hear the word tree is 'branch'. So data branching out towards other data is called a tree structure.&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Just keep these simple examples in mind and you will have a very good understanding of D.S when you read about it's implementation.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-115675763215041846?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/115675763215041846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=115675763215041846' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/115675763215041846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/115675763215041846'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2006/08/sneak-peek-on-data-structures.html' title='A sneak peek on Data Structures'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-115307486546145641</id><published>2006-07-16T11:15:00.000-07:00</published><updated>2006-07-16T11:34:25.506-07:00</updated><title type='text'>Calling Polly -  Polymorphism</title><content type='html'>'POLYMORPHISM' - The computer geek's buzz word.&lt;br /&gt;one thing that drives the software industry is polymorphism!  It is a very strong concept. To say, it is not as hard to master as it sounds, and at the same time it is not as easy to master as it seems from this statement. Boggled ?? Well dont be ! Lets make polymorphism simple.&lt;br /&gt;POLYMORPHISM -&gt; 1. FUNCTION OVERLOADING.&lt;br /&gt;                                                    2. SCOPE RESOLUTION.&lt;br /&gt;An easy way to understand things is to divide them into logical parts, ans as they say divide and rule....&lt;br /&gt;1. Function overloading - this is what packs most of the punch.&lt;br /&gt;&lt;br /&gt;Function overloading means using the same function name to call different functions according to need. It can be understood like this, your dining table functions as a table/surface on which food is served and eaten, while some times it also serves as table/surface on which the family board games are played. The world is full of such implementations of overloading. Your dad uses the computer to do his office work, you use it for playing games.&lt;br /&gt;The point is that you use the same thing for different roles as per need.&lt;br /&gt;&lt;br /&gt;int myfunc (int a, int b)&lt;br /&gt;{&lt;br /&gt;    return (a+b);&lt;br /&gt;}&lt;br /&gt;int myfunc (char a, char b)&lt;br /&gt;{&lt;br /&gt;    cout&lt;&lt;a&lt;&lt;b;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;here the functions have the same name but different parameter list and different body. With practice and further analysis you will understand it better.&lt;br /&gt;&lt;br /&gt;2. Scope resolution - same variable name, but different variable (in distinct scope)&lt;br /&gt;&lt;br /&gt;C++ provides a way to declare two variables having the same name but different their root scopes are disctinct, although they can overlap.&lt;br /&gt;&lt;br /&gt;{    int a=1;&lt;br /&gt;    {&lt;br /&gt;        int a=2;&lt;br /&gt;        {&lt;br /&gt;            int a=3;&lt;br /&gt;            cout&lt;&lt;a;&lt;br /&gt;        }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Note: some programmers dont feel that scope res. should be called a part of polymorphism.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-115307486546145641?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/115307486546145641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=115307486546145641' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/115307486546145641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/115307486546145641'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2006/07/calling-polly-polymorphism.html' title='Calling Polly -  Polymorphism'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-114750767454744703</id><published>2006-05-13T00:38:00.000-07:00</published><updated>2006-05-13T01:07:54.560-07:00</updated><title type='text'>One difference between C and C++</title><content type='html'>&lt;span style="font-weight: bold;"&gt;It is worth noting that one major difference between C and C++ is the way the code is documented, that is to say that the layout of various items like declaration and initialization as well as the position of the main function is fixed in C.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;while C++ provides a more flexible approach in the same matter. while coding in c++ you can initialize anywhere in between the code, and declare and define any function keeping in mind just that it is not called before it's declaration. so that is an added benefit on coding in C++.&lt;br /&gt;actually this can be thought of to be a direct consequence of the ability of a C++ code to perform late binding. SO you can call the free store of memory any time you want.&lt;br /&gt;&lt;br /&gt;example:&lt;br /&gt;In C the following code is invalid, but valid in C++:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;void main(  )&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;    int a;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;    clrscr( );&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;    int b;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;here initialzing the interger 'b' after calling the function clrscr( ) would lead you to an error.&lt;br /&gt;while at the same time, it's a perfect little code in case of C++.&lt;br /&gt;&lt;br /&gt;that is why in case of C++ you can write the for loop like this:&lt;br /&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;for(int i=0; i&lt;10;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Keep this fact in mind to take your programming skills to a better level.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-114750767454744703?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/114750767454744703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=114750767454744703' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/114750767454744703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/114750767454744703'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2006/05/one-difference-between-c-and-c.html' title='One difference between C and C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-114201847121917779</id><published>2006-03-10T11:11:00.000-08:00</published><updated>2006-03-10T11:21:11.220-08:00</updated><title type='text'>Knowing data abstraction</title><content type='html'>Data abstraction is an important part of OOP- Object Oriented Programming.&lt;br /&gt;Herein a group of data holding members are thought of as Objects having their own behaviour and interaction protocols towards other objects and the global environment.&lt;br /&gt;These objects exhibit their behaviour through functions which can access them.&lt;br /&gt;So basically Abstraction is the process of hiding the information that is at work in the background. Example: A car is known as a system(object) comprising of four wheels(functions to interact with th road), a steering wheel (a function that interacts with you, the user) ... the gearstick(function that interacts with the user again), but you do not know the nitty-gritty of the complex gear system yet you can easily use it to your advantage. Now this is a working and moving example of abstraction....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-114201847121917779?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/114201847121917779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=114201847121917779' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/114201847121917779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/114201847121917779'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2006/03/knowing-data-abstraction.html' title='Knowing data abstraction'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-113094686347991058</id><published>2005-11-02T07:28:00.000-08:00</published><updated>2005-11-02T07:54:23.506-08:00</updated><title type='text'>BASICS TO KNOW</title><content type='html'>THE INCLUDE SECTION:&lt;br /&gt;&lt;br /&gt;1&gt; WHAT ARE LIBRARY FUNCTIONS?&lt;br /&gt;&lt;br /&gt;    They are the routinely used functions which are made use of in almost all the programs.&lt;br /&gt;    They are stored in the header files which are included in the standard package in the folder generally named as ' Include'. Thewy header files store the defination of these library functions so you can use them by simply including those header files in your program and then calling those functions with whatever arguments needed.&lt;br /&gt;&lt;br /&gt;example : #include&lt;iostream.h&gt;&lt;br /&gt;                       &lt;br /&gt;    This header file is better known as :    Input-Output-Stream.header&lt;br /&gt;&lt;br /&gt;    So, as the name suggests, it includes the defination of the commonly used input and output functions.&lt;br /&gt;           &lt;br /&gt;Thus, this facility helps you to avoid writing the code for the same functions again and again.&lt;br /&gt;And the good news is that you can even create your own header files which define commonly used functions, classes and variales used generously all over your proejct.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-113094686347991058?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/113094686347991058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=113094686347991058' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/113094686347991058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/113094686347991058'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/11/basics-to-know.html' title='BASICS TO KNOW'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-112740697168020152</id><published>2005-09-22T08:48:00.000-07:00</published><updated>2005-09-22T09:36:11.686-07:00</updated><title type='text'>STRUCTURE OF A GOOD 'C/C++' PROGRAM</title><content type='html'>&lt;div style="text-align: center;"&gt;There are certain basic aspects that should be kept in mind; such as the format of the code, indentation, comments, smart variables etc..&lt;br /&gt;&lt;br /&gt;As for the basic layout, here is a tip:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;1&gt; Documentation:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;This should contain the objective of the program, the creator's name and date if neccessary and other details about the program. It should be in the form of a multi-line comment.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;                              Example: /* Program to add two numbers.&lt;br /&gt;                                                     created on: 22 sept-2005, by:urjit */&lt;br /&gt;&lt;br /&gt;2&gt;Linking of files and Inclusion:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This section should be used to link to all header files, external files and the library functions. Macros could also be placed in this section.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt; &lt;div style="text-align: justify;"&gt;                            Example: #include&lt;conio.h&gt;                                                     &lt;br /&gt;                                           #include&lt;iostream.h&gt;                   &lt;br /&gt;                                          define PI 3.14 &lt;br /&gt;&lt;br /&gt;3&gt;Main program:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This section should ideally contain the classes (in case of C++), global variables, filestreams, and the body of the main( ) function, containing all the sub-functions, local variables, objects etc..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4&gt;Functions and extra comments:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This section should contain the extra information and notes about debugging if required (untill the code is perfected), other functions that are to be used in the main program (for defining the functions here, they have to be declared above their control entry; i.e., generally above main).&lt;br /&gt;&lt;/iostream.h&gt;&lt;/conio.h&gt;&lt;/div&gt;          &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;/*program to add two numbers. created by:xuxux created on: 30/6/05 */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5027/932/1600/prog.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5027/932/320/prog.jpg" alt="" height="250" widht="250" border="1" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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/15440568-112740697168020152?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/112740697168020152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=112740697168020152' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112740697168020152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112740697168020152'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/09/structure-of-good-cc-program_22.html' title='STRUCTURE OF A GOOD &apos;C/C++&apos; PROGRAM'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-112498686906767141</id><published>2005-08-25T09:15:00.000-07:00</published><updated>2005-09-22T08:46:32.383-07:00</updated><title type='text'>IDEOLOGY OF A PROGRAMMING LANGUAGE</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5027/932/1600/atomic_memory_chip.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://photos1.blogger.com/blogger/5027/932/320/atomic_memory_chip.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;There are three important aspects of any programming language(and maybe just any language for that matter).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First:  What are the ways in which it stores data?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This involves concepts of size of data units, compatibilty of stored data on various platforms where it is to be used and the storage media used (usually the main memory for most direct data storing functions and calculations), format of the stored data and most importantly the indexing or pre-management of data to be stored.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Second: How it accomplishes input and output.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This relates to the methods of storing data and the usage of the various input and output streams to accomplish the task, feasiblity and polarity of using the input and output streams as well as the time taken to store/retrive and rewrite the data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Third:  How and what operators it uses to transform and combine data.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This covers the likes of methods of data standardization so that data can be compared and transformed from one main standard form to subsidiaries, operations to be performed on the data, the operation specifies etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;These are the Three kinds of building blocks of the basic ideology behind a programming language. I will cover each of the three aspects in detail in the future posts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-112498686906767141?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/112498686906767141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=112498686906767141' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112498686906767141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112498686906767141'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/08/ideology-of-programming-language.html' title='IDEOLOGY OF A PROGRAMMING LANGUAGE'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-112473372654666523</id><published>2005-08-22T10:48:00.000-07:00</published><updated>2005-08-22T11:02:06.550-07:00</updated><title type='text'>INTRODUCTION TO C</title><content type='html'>Before we venture into actual &lt;a href="www.cplusplus.com/doc/tutorial/"&gt;C++&lt;/a&gt;, let me talk a little about 'C' the ancestor of &lt;a href="www.cplusplus.com/doc/tutorial/"&gt;C++.&lt;/a&gt; It would be of interest to find out how C came into existance.&lt;br /&gt;&lt;br /&gt;    What is C?&lt;br /&gt;&lt;br /&gt;    C is a programming language which was developed at &lt;a href="http://www.research.att.com"&gt;AT &amp; T&lt;/a&gt;'s&lt;a href="www.bell-labs.com"&gt; Bell Laboratories &lt;/a&gt;of USA in 1972. It was designed and written by &lt;a href="www.cs.bell-labs.com/who/dmr/"&gt;Dennis Ritchie&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt; In the late Seventies C began to replace the more familiar languages of that time like PL/I, &lt;a href="www.engin.umd.umich.edu/CIS/course.des/cis400/algol/algol.htm"&gt;ALGOL&lt;/a&gt; etc. No one Pushed C. Although C wasn't made the 'official' Bell Labs Language, without any advertisement C's reputation spread and its pool of users grew. &lt;a href="www.cs.bell-labs.com/who/dmr/"&gt;Ritchie&lt;/a&gt; seems to have been rather surprised that so many programmers preffered C to older languages like &lt;a href="www.fortran.com/"&gt;FORTRAN&lt;/a&gt; or PL/I, or the newer ones &lt;a href="www.freepascal.org/"&gt;Pascal&lt;/a&gt; and APL. But that's waht certainly happened!&lt;br /&gt;&lt;br /&gt; That is how we got &lt;a href="www.cplusplus.com/doc/tutorial/"&gt;C++&lt;/a&gt; in our hands.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-112473372654666523?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/112473372654666523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=112473372654666523' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112473372654666523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112473372654666523'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/08/introduction-to-c_22.html' title='INTRODUCTION TO C'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-112428223319942538</id><published>2005-08-17T05:12:00.000-07:00</published><updated>2005-08-17T06:16:08.793-07:00</updated><title type='text'>INTRODUCTION TO C++</title><content type='html'>The  &lt;span style="font-weight: bold;"&gt;C++&lt;/span&gt;  language was developed at &lt;span style="font-weight: bold;"&gt;&lt;a href="http://www.google.co.in/url?sa=t&amp;ct=res&amp;amp;cd=3&amp;url=http%3A//www.research.att.com/&amp;amp;ei=yjcDQ7CHCp3CsAG51rHdDg"&gt;AT&amp;T&lt;/a&gt; &lt;a href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;cd=1&amp;amp;url=http%3A//www.bell-labs.com/&amp;ei=yjcDQ7CHCp3CsAG51rHdDg"&gt;Bell Laboratories&lt;/a&gt;&lt;/span&gt; in the early 1980s by &lt;a href="http://www.google.co.in/url?sa=t&amp;amp;ct=res&amp;cd=1&amp;amp;url=http%3A//www.research.att.com/%7Ebs/homepage.html&amp;ei=ozcDQ97uAqyGsgHii7XKDg"&gt;&lt;span style="font-weight: bold;"&gt;Bjarne Stroustrup&lt;/span&gt;&lt;/a&gt;. The name C++ was coined by:&lt;a href="http://www.google.co.in/url?sa=t&amp;ct=res&amp;amp;cd=7&amp;url=http%3A//docs.hp.com/en/92501-90029/ch01s01.html&amp;amp;ei=9zcDQ7WkIsmisgHgzaXRDg"&gt; &lt;span style="font-weight: bold;"&gt;Rick Mascitti&lt;/span&gt;&lt;/a&gt;, where '++' is the increment operator.&lt;br /&gt;&lt;br /&gt;The maturation of the C++ language is attested to by  two recent events:&lt;br /&gt;&lt;br /&gt;   1] the foramation of an &lt;a href="http://www.google.co.in/url?sa=t&amp;ct=res&amp;amp;cd=1&amp;url=http%3A//www.ansi.org/&amp;amp;ei=LTgDQ76vN5KYsgG6-bWHCA"&gt;&lt;span style="font-weight: bold;"&gt;ANSI &lt;/span&gt;&lt;/a&gt;(American National Standard Institute) C++ committee and&lt;br /&gt;   2] the publication of the &lt;a href="http://www.google.co.in/url?sa=t&amp;ct=res&amp;amp;cd=3&amp;url=http%3A//www.research.att.com/%7Ebs/arm_pref.html&amp;amp;ei=fjgDQ7jKHsSCsQGEuZm6Dg"&gt;&lt;span style="font-style: italic;"&gt;Annotated C++ Reference Manual&lt;/span&gt; by &lt;span style="font-style: italic;"&gt;Ellis&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;Stroustrup&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The major reason for the success and popularity of C++ is that it supports the &lt;span style="font-style: italic; font-weight: bold;"&gt;Object Oriented technology&lt;/span&gt;, the latest in the software development and the most near to the real world.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-112428223319942538?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.google.co.in/url?sa=t&amp;ct=res&amp;cd=7&amp;url=http%3A//docs.hp.com/en/92501-90029/ch01s01.html&amp;ei=9zcDQ7WkIsmisgHgzaXRDg' title='INTRODUCTION TO C++'/><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/112428223319942538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=112428223319942538' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112428223319942538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112428223319942538'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/08/introduction-to-c.html' title='INTRODUCTION TO C++'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-15440568.post-112410831483865122</id><published>2005-08-15T05:17:00.000-07:00</published><updated>2005-08-15T05:18:34.836-07:00</updated><title type='text'>THE C++ BLOG</title><content type='html'>HI I AM STARTING THIS NEW C++ PROGRAMMING BLOG TODAY.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15440568-112410831483865122?l=turboc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://turboc.blogspot.com/feeds/112410831483865122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=15440568&amp;postID=112410831483865122' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112410831483865122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15440568/posts/default/112410831483865122'/><link rel='alternate' type='text/html' href='http://turboc.blogspot.com/2005/08/c-blog.html' title='THE C++ BLOG'/><author><name>URJIT</name><uri>http://www.blogger.com/profile/16003894652966991061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_sL0_8zcJLwg/SM0smwS_StI/AAAAAAAAADU/GsXNP2bvx9w/S220/DSC00373.JPG'/></author><thr:total>3</thr:total></entry></feed>
