<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>inheritances | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/inheritances/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 04 Apr 2010 15:17:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C++ program using class to generate mark sheet using multiple inheritance</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-using-class-to-generate-mark-sheet-using-multiple-inheritance/</link>
					<comments>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-using-class-to-generate-mark-sheet-using-multiple-inheritance/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 04 Apr 2010 15:17:28 +0000</pubDate>
				<category><![CDATA[Advanced programs]]></category>
		<category><![CDATA[C Programs]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[multiple inheritances]]></category>
		<category><![CDATA[student class]]></category>
		<category><![CDATA[inheritances]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1144</guid>

					<description><![CDATA[<p>Using multiple inheritances, prepare a Student Mark sheet, class marks for every student in three subjects. The inherited class generates mark sheet. #include #include #include class student { int roll; char name[25]; char add [25]; char *city; public: student() { cout>sub3; } void output() { putdata(); cout</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-using-class-to-generate-mark-sheet-using-multiple-inheritance/">C++ program using class to generate mark sheet using multiple inheritance</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Using multiple inheritances, prepare a Student Mark sheet, class marks for every student in three subjects. The inherited class generates mark sheet.</p>
<pre lang="cpp">
#include<iostream.h>
#include<stdio.h>
#include<dos.h>
class student 
{
	int roll;
	char name[25];
	char add [25];
	char *city;
	public: student()
	{
		cout<<"welcome in the student information system"<<endl;
	}
	void getdata()
	{
		cout<<"\n enter the student roll no.";
		cin>>roll;
		cout<<"\n enter the student name";
		cin>>name;
		cout<<\n enter ther student address";
		cin>>add;
		cout<<"\n enter the student city";
		cin>>city;
	}
	void putdata()
	{
		cout<,"\n the student roll no:"<<roll;
		cout<<"\n the student name:"<<name;
		cout<<"\n the student coty:"<<city;
	}
};
class mrks: public student
{
	int sub1;
	int sub2;
	int sub3;
	int per;
	public: void input()
	{
		getdata();
		cout<<"\n enter the marks1:"
		cin>>sub1:
		cout<<"\n enter the marks2:";
		cin>>sub2;
		cout<<\n enter the marks3:";
		cin>>sub3;
	}
	void output()
	{
		putdata();
		cout<<"\n marks1:"<<sub1;
		cout<<"\n marks2:"<<sub2;
		cout<<"\n marks3:"<<sub3;
	}
	void calculate ()
	{
		per= (sub1+sub2+sub3)/3;
		cout<<"\n tottal percentage"<<per;
	}
};

void main()
{
	marks m1[25];
	int ch;
	int count=0;
	do 
	{
		cout<<\n1.input data";
		cout<<\n2.output data";
		cout<<\n3. Calculate percentage";
		cout<<\n4.exit";
		cout<<\n enter the choice";
		cin>>ch;
		switch (ch)
		{
			case 1:
			m1.input();
			count++;
			break;
			
                        case2:
			m1.output();
			break;

			case3:
			m1.calculate();
			break;
		}
	} while (ch!=4);
}
</pre><p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-using-class-to-generate-mark-sheet-using-multiple-inheritance/">C++ program using class to generate mark sheet using multiple inheritance</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-using-class-to-generate-mark-sheet-using-multiple-inheritance/feed/</wfw:commentRss>
			<slash:comments>21</slash:comments>
		
		
			</item>
	</channel>
</rss>
