<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6860941537780957284</id><updated>2024-11-08T07:27:01.657-08:00</updated><category term="1-1"/><category term="1-2"/><category term="CPP"/><category term="OOPS"/><category term="Programs"/><category term="Books"/><category term="C-Language"/><category term="Syllabus"/><title type='text'>GITAM Books</title><subtitle type='html'>Engineering Text Books , Ebooks , C Programs , C++ Programs at one single stop&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-4176803342879948347</id><published>2014-08-09T10:20:00.009-07:00</published><updated>2014-08-11T03:21:59.403-07:00</updated><title type='text'>OOPS CPP Program-20</title><summary type="text">
20. Write a program to find factorial of a given number. Throw multiple exceptions and define multiple catch statements to handle negative number andout of memory exception. Negative number exception thrown if given number is negative value and out of memory exception is thrown if the given number is greater than 20

# include&amp;lt;iostream&amp;gt;
using namespace std;

int main()
&amp;nbsp; &amp;nbsp; {
&amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/4176803342879948347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/4176803342879948347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/4176803342879948347'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-20.html' title='OOPS CPP Program-20'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-716815065897798696</id><published>2014-08-09T10:20:00.003-07:00</published><updated>2014-08-11T03:23:43.393-07:00</updated><title type='text'>OOPS CPP Program-19</title><summary type="text">
19.Write a program to find average marks of the subjects of a student. Throw multiple exceptions and define multiple catch statements to handle division by zero as well as array index out of bounds exceptions.

# include&amp;lt;iostream&amp;gt;
using namespace std;

int main()&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; int n,marks[10];
&amp;nbsp; &amp;nbsp; float avg=0,tot=0;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n enter the no of subjects&quot;;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/716815065897798696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/716815065897798696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/716815065897798696'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-19.html' title='OOPS CPP Program-19'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-2787237073655933118</id><published>2014-08-09T10:15:00.007-07:00</published><updated>2014-08-11T03:23:43.389-07:00</updated><title type='text'>OOPS CPP Program-18</title><summary type="text">
18. Write a program to search a key element in a given set of elements using class template.

#include&amp;lt;iostream&amp;gt;
#include&amp;lt;string.h&amp;gt;
using namespace std;
template&amp;lt;class t&amp;gt;
class array
{
&amp;nbsp; &amp;nbsp; t a[30],se;int size;&amp;nbsp;

public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; void get()
{
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;lt;&quot;\n Enter the size of array&quot;;
&amp;nbsp; &amp;nbsp; cin&amp;gt;&amp;gt;size;
&amp;nbsp; &amp;nbsp; cout&amp;lt;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/2787237073655933118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/2787237073655933118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/2787237073655933118'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-18.html' title='OOPS CPP Program-18'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8188438301398171118</id><published>2014-08-09T10:15:00.003-07:00</published><updated>2014-08-11T03:24:31.031-07:00</updated><title type='text'>OOPS CPP Program-17</title><summary type="text">
17. Write a program to sort a given set of elements using function template.

#include&amp;lt;iostream&amp;gt;&amp;nbsp;
#include&amp;lt;string.h&amp;gt;&amp;nbsp;
using namespace std;&amp;nbsp;
template&amp;lt;class t&amp;gt;&amp;nbsp;
class array&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; &amp;nbsp;int size;&amp;nbsp;
&amp;nbsp; &amp;nbsp;t a[30];&amp;nbsp;
public:&amp;nbsp;
&amp;nbsp; &amp;nbsp;void get()&amp;nbsp;
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;\n Enter the &amp;nbsp;array size&quot;;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8188438301398171118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8188438301398171118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8188438301398171118'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-17.html' title='OOPS CPP Program-17'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-3997300801988872649</id><published>2014-08-09T10:14:00.007-07:00</published><updated>2014-08-11T03:24:30.992-07:00</updated><title type='text'>OOPS CPP Program-15</title><summary type="text">
15. Write a program to concatenate one string to another using binary operator overloading.

#include&amp;lt;iostream&amp;gt;
#include&amp;lt;string.h&amp;gt;

using namespace std;
class str&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char *st;
public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str(int len, char *s)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int l=strlen(s);
&amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/3997300801988872649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3997300801988872649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3997300801988872649'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-15.html' title='OOPS CPP Program-15'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-7748702382051420032</id><published>2014-08-09T10:14:00.003-07:00</published><updated>2014-08-11T03:24:31.023-07:00</updated><title type='text'>OOPS CPP Program-16</title><summary type="text">
16. Write a program that uses functions to perform the following operations:

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. To copy contents of one file into another file.

#include&amp;lt;iostream&amp;gt;
#include&amp;lt;fstream&amp;gt;
#include&amp;lt;string.h&amp;gt;
using namespace std;

int main()&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; fstream ifile;
&amp;nbsp; &amp;nbsp; fstream ofile;
&amp;nbsp; &amp;nbsp; char fname[30],st[30];
&amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/7748702382051420032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-16.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/7748702382051420032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/7748702382051420032'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-16.html' title='OOPS CPP Program-16'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-3014898173606199832</id><published>2014-08-09T10:13:00.002-07:00</published><updated>2014-08-11T03:24:30.988-07:00</updated><title type='text'>OOPS CPP Program-14</title><summary type="text">
14. Write a program to find transpose of a given matrix of mxn size using unary operator overloading

#include&amp;lt;iostream&amp;gt;
using namespace std;
class matrix
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int x[5][5],m,n;
public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matrix(){ }
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matrix(int a,int b)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m=a;n=b;
</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/3014898173606199832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3014898173606199832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3014898173606199832'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-14.html' title='OOPS CPP Program-14'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-6851293544816662540</id><published>2014-08-09T10:12:00.003-07:00</published><updated>2014-08-11T03:24:31.009-07:00</updated><title type='text'>OOPS CPP Program-13</title><summary type="text">
13.Write a program to add two matrices of mxn size using binary operator overloading.


#include&amp;lt;iostream&amp;gt;
using namespace std;
class matrix&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int m, n, x[30][30];&amp;nbsp;
public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matrix(int a, int b)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m=a;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/6851293544816662540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6851293544816662540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6851293544816662540'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-13.html' title='OOPS CPP Program-13'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8081576255346353972</id><published>2014-08-09T10:09:00.002-07:00</published><updated>2014-08-11T03:24:31.027-07:00</updated><title type='text'>OOPS CPP Program-12</title><summary type="text">
12. Write a program to calculate bonus of the employees. The class master derives the information from both admin and account classes which intern derives information from class person. Create base and all derived classes having same member functions called getdata, display data and bonus. Create a base class pointer that capable of accessing data of any class and calculates bonus of the </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8081576255346353972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8081576255346353972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8081576255346353972'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-12.html' title='OOPS CPP Program-12'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-6894919208944185021</id><published>2014-08-09T10:08:00.002-07:00</published><updated>2014-08-11T03:24:31.015-07:00</updated><title type='text'>OOPS CPP Program-11</title><summary type="text">
11. Write a program to calculate gross and net pay of employee from basic salary. Create employee class which consists of employee name, emp_id, and basic salary as its data members. Use parameterized constructor in the derived class to initialize data members of the base class and calculate gross and net pay of the employee in the derived class.

#include&amp;lt;iostream.h&amp;gt;
#include&amp;lt;string.h&amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/6894919208944185021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6894919208944185021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6894919208944185021'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-11.html' title='OOPS CPP Program-11'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8891092808907186945</id><published>2014-08-09T10:06:00.005-07:00</published><updated>2014-08-11T03:24:31.045-07:00</updated><title type='text'>OOPS CPP Program-10</title><summary type="text">
10. Write a program which prompts the user to enter a string and returns the length of the longest sequence of identical consecutive characters within the string using pointers to data members and member function. For example, in the string &quot;aaaAAAAAjjB&quot;, the longest sequence of identical consecutive characters is &quot;AAAAA&quot;.


#include&amp;lt;iostream&amp;gt;
#include&amp;lt;string&amp;gt;
using namespace std;
</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8891092808907186945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8891092808907186945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8891092808907186945'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-10.html' title='OOPS CPP Program-10'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-6178694040727474149</id><published>2014-08-09T10:06:00.001-07:00</published><updated>2014-08-11T03:24:31.005-07:00</updated><title type='text'>OOPS CPP Program-9</title><summary type="text">
9. Write a program for finding area of different geometric shapes (circle, rectangle, cube). Use function overloading with type, order, sequence of arguments to find the area of shapes.


#include&amp;lt;iostream.h&amp;gt;
#include&amp;lt;iomanip.h&amp;gt;

float area(int); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// circle
float area(float); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // cube&amp;nbsp;
int area(int,int); &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/6178694040727474149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6178694040727474149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6178694040727474149'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-9.html' title='OOPS CPP Program-9'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-5334738292946034866</id><published>2014-08-09T10:04:00.003-07:00</published><updated>2014-08-11T03:24:30.996-07:00</updated><title type='text'>OOPS CPP Program-8</title><summary type="text">
8. Write a Program to generate Fibonacci Series by using Constructor to initialize the Data Members.


#include&amp;lt;iostream&amp;gt;
&amp;nbsp;#include&amp;lt;iomanip&amp;gt;

class fibonacci&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n1,n2;
public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fibonacci()
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/5334738292946034866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5334738292946034866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5334738292946034866'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-8.html' title='OOPS CPP Program-8'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-1669061235900967721</id><published>2014-08-09T10:03:00.004-07:00</published><updated>2014-08-11T03:24:30.975-07:00</updated><title type='text'>OOPS CPP Program-7</title><summary type="text">
7. Write a program to add two matrices of same copy. Create two objects of the class and each of which refers one 2D matrix. Use constructor to allocate memory dynamically and use copy constructor to allocate memory when one array object is used to initialize another.

#include&amp;lt;iostream.h&amp;gt;&amp;nbsp;
class matrix
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int **a;
public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/1669061235900967721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1669061235900967721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1669061235900967721'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-7.html' title='OOPS CPP Program-7'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-5466036853039982236</id><published>2014-08-09T09:59:00.002-07:00</published><updated>2014-08-11T03:24:31.001-07:00</updated><title type='text'>OOPS CPP Program-6</title><summary type="text">
6. Write a program to find total and average marks of each student in class. Create a student class with student number, name, 6 subject marks as its members and initializes the details. Use friend class that access the details of student and calculates total, average marks and prints the result.

#include&amp;lt;iostream.h&amp;gt;
using namespace std;
class student
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/5466036853039982236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5466036853039982236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5466036853039982236'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-6.html' title='OOPS CPP Program-6'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8276483039233738534</id><published>2014-08-09T09:57:00.002-07:00</published><updated>2014-08-11T03:24:31.035-07:00</updated><title type='text'>OOPS CPP Program-5</title><summary type="text">
5. Write a CPP program to add corresponding elements of two 2D matrices using friend function. Create two classes each capable of storing one 2D matrix. Declare the matrix under private access specifier and access them outside the class.

#include&amp;lt;iostream&amp;gt;
using namespace std;
&amp;nbsp;class matrix2;
&amp;nbsp;class matrix1

{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int a[5][5]; &amp;nbsp; &amp;nbsp; </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8276483039233738534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8276483039233738534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8276483039233738534'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-5.html' title='OOPS CPP Program-5'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-2818616046625923587</id><published>2014-08-09T07:50:00.003-07:00</published><updated>2014-08-11T03:24:30.984-07:00</updated><title type='text'>OOPS CPP Program-4</title><summary type="text">
4. Write a CPP program to add two polynomials of any degree using objects as function arguments. &amp;nbsp;(Hint: create two objects each represent one polynomial equation.)

#include&amp;lt;iostream&amp;gt;
using namespace std;

class poly&amp;nbsp;
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int order;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int coeff[10];
&amp;nbsp; public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/2818616046625923587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/2818616046625923587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/2818616046625923587'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-4.html' title='OOPS CPP Program-4'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-6914135277140610372</id><published>2014-08-09T07:49:00.004-07:00</published><updated>2014-08-11T03:24:31.019-07:00</updated><title type='text'>OOPS CPP Program-3</title><summary type="text">
3. Write a CPP program to find transpose of 2D matrix and allocate memory dynamically to the matrix using dynamic memory allocation. Initialize and display contents of the matrix and deallocate memory.

#include&amp;lt;iostream.h&amp;gt;
class trans
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int **a,**b;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int m,n;
&amp;nbsp; public:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/6914135277140610372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6914135277140610372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6914135277140610372'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-3.html' title='OOPS CPP Program-3'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8477924400659402727</id><published>2014-08-09T07:47:00.005-07:00</published><updated>2014-08-11T03:24:31.040-07:00</updated><title type='text'>OOPS CPP Program-2</title><summary type="text">
2. Write a CPP program to find the given string is palindrome or not. Declare private member function to find palindrome of the given string and access it using public member function.

#include&amp;lt;iostream&amp;gt;
#include&amp;lt;string&amp;gt;
class palins
{

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char string[30];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int checkpalin(char *);
&amp;nbsp; public:
&amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8477924400659402727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8477924400659402727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8477924400659402727'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-2.html' title='OOPS CPP Program-2'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-1838700300484385059</id><published>2014-08-09T07:43:00.001-07:00</published><updated>2014-08-11T03:24:30.979-07:00</updated><title type='text'>OOPS CPP Program 1</title><summary type="text">
1. Write a CPP program that contains a function to exchange values of two arguments( swap) by using pointers and reference parameters. &amp;nbsp;&amp;nbsp;

#include &amp;lt;iostream&amp;gt;
using namespace std;
void swap1(int *, int *);
void swap2(int &amp;amp;,int &amp;amp;);

int main()

&amp;nbsp;{
&amp;nbsp; &amp;nbsp;int a,b;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout&amp;lt;&amp;lt;&quot;Enter two integers: &quot;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/1838700300484385059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1838700300484385059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1838700300484385059'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/cpp-1.html' title='OOPS CPP Program 1'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-6252357140469122653</id><published>2014-08-02T10:47:00.002-07:00</published><updated>2014-08-11T03:25:30.688-07:00</updated><title type='text'>C-Programming Program 8(a)</title><summary type="text">
8. &amp;nbsp;Write a C program that uses functions to perform the following operations:
&amp;nbsp;&amp;nbsp;a)Count number of characters, words in a file.
&amp;nbsp;&amp;nbsp;b) Write a C program to reverse the first n characters in a file. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
(Note: The file name and n are specified on the command line.)&amp;nbsp;
&amp;nbsp; c) Write a C program which copies one file to another.&amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/6252357140469122653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-8a.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6252357140469122653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/6252357140469122653'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-8a.html' title='C-Programming Program 8(a)'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzi7Y_ailRX_Wr_x_dUzQ1u4VqeBFDj7NAwhit7s6FycyhLQ7olOAnAr9TAD9sdcCQnHQJIgb3eXc_FQc8aPKotsu3DpXu3ZL5IZYDW8s3YLcm2tFgAfAGSplyjoGG8I5JMpm9NSJxJeM7/s72-c/8b.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-8780587786371954538</id><published>2014-08-02T10:39:00.004-07:00</published><updated>2014-08-11T03:25:30.702-07:00</updated><title type='text'>C-Programming  Program 7(a)</title><summary type="text">
7. &amp;nbsp; &amp;nbsp;Write a C program that uses functions to perform the following operations:
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i) Reading a complex number
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ii) Writing a complex number
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iii)Addition of two complex numbers 

Flowchart&amp;nbsp;








Program

#include&amp;lt;stdio.h&amp;gt;
struct complex{
</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/8780587786371954538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-7a.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8780587786371954538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/8780587786371954538'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-7a.html' title='C-Programming  Program 7(a)'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOt1yk92PzPUR2pl3mcbWi3PKwgqyourmZUk_h6L4XuqHGW3OZKUKSDtO3oZVo0RkezuEavP3-1ufXDBzQRQ2PFANLZHi5ZZIi0s3xh3kvqfshRUox7Z1M6ZKWyfbuQpSU-mHJNqRs5PNh/s72-c/complex.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-3026703677340291314</id><published>2014-08-02T10:36:00.005-07:00</published><updated>2014-08-11T03:25:30.658-07:00</updated><title type='text'>C-Programming  Program 6(c)</title><summary type="text">

6( c) Given an Array of Strings Write a Program to Sort the String in Dictionary Order.

Algorithm

Sorting of string
1. Start
2. Read n
3. Initialize i:=0
4. Repeat steps 4 to 6 if i&amp;lt;n. else go to step 7
5. Read name[i]
6. i:=i+1
7. Set i:=0
8. Repeat steps 8 to 16 if i&amp;lt;n. else go to step 17
9. Set j:=i+1
10. Repeat steps 10 to15 if j&amp;lt;n. else go to step 16
11. If strcmp(name[i],name[j</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/3026703677340291314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3026703677340291314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/3026703677340291314'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6c.html' title='C-Programming  Program 6(c)'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNzOJmdVBn9vIiVvC16jhi8vS_gLvKBKillxIoYtPaUmS5fG6FWFsgf5tdWlYzuvuVydP_N_LzB5IqiwsRJq4Z-iwjNG-pQ2SbAVPvJh85i_c_chEgvRPALvBFuHK6DDwOnS8GUBcDP55/s72-c/6c.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-1189072338970577524</id><published>2014-08-02T10:26:00.004-07:00</published><updated>2014-08-11T03:25:30.629-07:00</updated><title type='text'>C-Programming  Program 6(b)</title><summary type="text">
&amp;nbsp; &amp;nbsp;6(b) Write a C program to determine if the given string is a palindrome or not&amp;nbsp;

Algorithm&amp;nbsp;

Checking whether a given string is Palindrome or not
1. Start
2. Read string
3. Set i:=0,j:=0,flag:=0
4. Repeat step 5 until string[i] == ’\0’, goto step 6.
5. Set i:=i+1&amp;nbsp;
6. Set length:=i
7. Set i:=length -1.
8. Repeat steps 9 to 11 until i &amp;lt; 0, goto step 12
9. Set </summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/1189072338970577524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6b.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1189072338970577524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/1189072338970577524'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6b.html' title='C-Programming  Program 6(b)'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXCzt18wWFJF7xCpPNaaG9WaoLisWwRJojWV9THIRBKVP1dksLn5z2PlO0uur_jd2o7dMfkmxtEv9ArbCSLb2ub7h4NqyKiQH0gcwD6-xm_l0OXkNoi9L8D2dN4BYRmC-KgE7hCv2RHvjJ/s72-c/6b.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6860941537780957284.post-5134497616568269092</id><published>2014-08-02T10:23:00.000-07:00</published><updated>2014-08-11T03:25:30.684-07:00</updated><title type='text'>C-Programming  Program 6(a)</title><summary type="text">
6. &amp;nbsp; &amp;nbsp;a) Write a C program that uses functions to perform the following operations:
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i) To insert a sub-string in to given main string from a given position.
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ii) To delete n Characters from a given position in a</summary><link rel='replies' type='application/atom+xml' href='http://gitambooks.blogspot.com/feeds/5134497616568269092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6a.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5134497616568269092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6860941537780957284/posts/default/5134497616568269092'/><link rel='alternate' type='text/html' href='http://gitambooks.blogspot.com/2014/08/program-6a.html' title='C-Programming  Program 6(a)'/><author><name>Sam Livingston</name><uri>http://www.blogger.com/profile/00100801257716543567</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpzUWAMYqcz3p-lcwyQJoNHQ3ugctclsH_UW46jkWOhARvxtpv7aHf3o8FYaB8_suqkFoM2xICutfETNmUNSdR55fPf4E-30ycMC4aeQBN_r3ACjVcw1mtbtxnhE70zMw9W6akH-0vBTiu/s72-c/6ai.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>