tag:blogger.com,1999:blog-14891036616915886702024-03-12T17:22:59.086-07:00C/C++ Programming From the BeginingKanishka Dilshanhttp://www.blogger.com/profile/08604043101957122711noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1489103661691588670.post-44827107958610800942009-06-16T02:58:00.000-07:002009-06-18T15:09:05.661-07:00Blog Contents<div style="text-align: center;"><span style="color: rgb(51, 102, 255);font-size:180%;" >This Blog is Being Constructed, Thank You for Visiting</span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_zymieio832M/SjespDmDdUI/AAAAAAAAAB4/qdLj_21U98A/s1600-h/sliit+logo.gif"><img style="cursor: pointer; width: 160px; height: 200px;" src="http://1.bp.blogspot.com/_zymieio832M/SjespDmDdUI/AAAAAAAAAB4/qdLj_21U98A/s200/sliit+logo.gif" alt="" id="BLOGGER_PHOTO_ID_5347932903865283906" border="0" /></a><br /><br /><script src="http://scripts.widgethost.com/pax/counter.js?counter=ctr-q3kgl5gyoo"></script><br /><noscript></noscript><br /><br /></div><br /><div style="text-align: center;"><div style="text-align: left; color: rgb(0, 51, 0);"><span style="font-style: italic; color: rgb(51, 102, 102);font-size:130%;" ><span style="font-weight: bold;">About This Blog</span></span><span style="font-size:130%;"><br /></span></div><br /></div>I created this for sharing some programming knowledge with the readers of this blog.I post some C/C++ notes here. I hail for the <a href="http://www.sliit.lk/">SLIIT</a>(Sri Lanka Institure of Information Technology) for giving this knowledge to me.<br /><span style="font-weight: bold;font-size:130%;" ><br /><span style="font-style: italic; color: rgb(51, 102, 102);">Contents</span></span><br /><blockquote></blockquote> <span style="font-weight: bold;">1.History of C++</span><br /><span style="font-weight: bold;">2.C++ Programming Environments</span><br /><span style="font-weight: bold;"> 2.1.UNIX(Knoppix,Fedora,Ubuntu,Kubuntu)</span><br /><span style="font-weight: bold;"> 2.1.1.How to Use Source Editors in UNIX</span><br /><span style="font-weight: bold;"> 2.1.2.How to Use Compilers in UNIX</span> <span style="font-weight: bold;"> <br />2.2.3.How to use IDE s available for UNIX</span> <span style="font-weight: bold;"> <br />2.2.Windows</span> <span style="font-weight: bold;"> <br />2.2.1.Source Editors</span> <span style="font-weight: bold;"> <br />2.2.2.Compilers</span> <span style="font-weight: bold;"> <br />2.2.3.How to use IDE s available for Windows</span><br /><br /><span style="font-weight: bold; color: rgb(0, 102, 0);">3.Introduction to C++</span><br /><span style="font-weight: bold;">3.1.Basic structure of a Program</span><br /><span style="font-weight: bold;">3.2.Keywords</span> <span style="font-weight: bold;"><br />3.3.First C++ Program</span><br /><br /><span style="font-weight: bold; color: rgb(0, 102, 0);">4.Variables and Data Types</span><br /><span style="font-weight: bold;">4.1.Identifiers</span><br /><span style="font-weight: bold;">4.2.Defining a Variable</span><br /><span style="font-weight: bold;">4.3.Assignment statement</span><br /><span style="font-weight: bold; font-style: italic;">4.4.<span style="color: rgb(51, 102, 102);">Exercises and Answers</span></span><br /><br /><span style="font-weight: bold; color: rgb(0, 102, 0);">5.Basic Arithmetic on C++</span><br /><span style="font-weight: bold;">5.1.Arithmetic operators</span><br /><span style="font-weight: bold;">5.2.Conversion Between Data types</span><br /><span style="font-weight: bold; font-style: italic;">5.3.<span style="color: rgb(51, 102, 102);">Exercises and Answers</span></span><br /><br /><span style="font-weight: bold; color: rgb(0, 102, 0);">6.Selections(Decisions)</span><br /><span style="font-weight: bold;">6.1.1. if statement</span><br /><span style="font-weight: bold;">6.1.1.1. if and else Statements</span><br /><span style="font-weight: bold;">6.1.1.2.Nested if Statements</span><br /><span style="font-weight: bold;">6.1.2. switch statement</span><br /><span style="font-weight: bold;">6.1.3. Conditional Operator</span><br /><span style="font-weight: bold;">6.2.Basic Boolean algebra</span><br /><span style="font-weight: bold;">6.3.AND , OR , NOT , XOR Operators</span><br /><span style="font-weight: bold; font-style: italic;">6.4.<span style="color: rgb(51, 102, 102);">Exercises and Answers</span></span><br /><br /><span style="font-weight: bold; color: rgb(0, 102, 0);">7.Iteration (Repetition)</span><br /><span style="font-weight: bold;">7.1.Loops</span><br /><span style="font-weight: bold;">7.1.1. for Loop</span><br /><span style="font-weight: bold;">7.1.2. while Loop</span><br /><span style="font-weight: bold;">7.1.3. do while Loop</span><br /><span style="font-weight: bold;">7.2.Infinite Loops</span><br /><span style="font-weight: bold;">7.3.<span style="font-style: italic; color: rgb(51, 102, 102);">Exercises and Answers<br /><br /></span><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><span style="color: rgb(0, 102, 0);">8.Data Structures I</span><br />8.1.Introduction to Arrays<br />8.2.Structure of an Array<br />8.3.Defining Arrays<br />8.4.Accessing Array Elements<br />8.5.Multidimensional Arrays<br />8.6.Using C Strings<br />8.6.1.Using String Functions(in cstring , string.h )<br />8.6.2.Examples on String Functions<br />8.7.Structures<br />8.7.1.Examples on Structures<br />8.8.Enumerations<br />8.9.Pointers<br />8........<br /></span></span></span></span><span style="font-weight: bold;">8.10.<span style="font-style: italic; color: rgb(51, 102, 102);">Exercises and Answers</span></span><br /><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><br /><span style="color: rgb(0, 102, 0);">9.Functions</span><br />9.1.Introduction to functions<br />9.1.1.Parts of a Function<br />9.2.Function Declaration and Definition<br />9.3.Calling a Function<br />9.4.Passing Arguments to Functions<br />9.4.1.Difference Between "Pass By Value" and "Pass By Reference"<br />9.4.2.Passing Arrays To Functions<br />9.4.3.Using Pointers With Functions<br />9.4.Function Overloading<br />9.5.Inline Functions<br />9.5.1.Importance of Inline Functions<br />9.5.2.Draw backs of Inline Functions<br />9.6.Default Arguments<br />9.7.Life Span of Variables<br />9.8.Recursion<br />9.9.Command Line Arguments<br />9.9.1.Why Command Line Arguments?<br />9.9.2.Passing </span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;">Command Line Arguments</span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><br />9.9.3.Handling </span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"></span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;">Command Line Arguments</span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><br />9.10.</span></span></span></span><span style="font-weight: bold;"><span style="font-style: italic; color: rgb(51, 102, 102);">Exercises and Answers<br /><br /></span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;">10.</span></span></span><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><span style="color: rgb(0, 102, 0);">Object Oriented Programming</span><br /><br /><br /><br />11.FAQ s<br /><br />12.C++ Questions and Answers<br /><br />13.Solutions for E-Mailed Questions<br /><br />14.Contact me</span></span></span><span style="font-style: italic; color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><span style="font-style: italic;"></span></span></span><br /></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><br /></span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"></span></span></span></span><span style="font-weight: bold;"><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"><br /><br /></span></span></span><span style="color: rgb(51, 102, 102);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"></span></span></span></span><br /><br /><br /><br /><br /><br /><noscript><a href="http://www.pax.com/free-counters.html"><img src="http://counter.pax.com/counter/image?counter=ctr-q3kgl5gyoo&noscript=1" alt="Free Hit Counter" border="0" /></a></noscript><br /><div style="text-align: center;"><br /></div>Kanishka Dilshanhttp://www.blogger.com/profile/08604043101957122711noreply@blogger.com3