#include<iostream.h> #include<conio.h>
class student {
public:
protected: int rno,m1,m2;
{ SEE IT. void get() };
class sports {
public: void getsm() {
cout<<”\nEnter the sports mark :”; cin>>sm;
}
}; class statement:public student,public sports {
int tot,avg; public: void display() {
tot=(m1+m2+sm); avg=tot/3; cout<<”\n\n\tRoll No : “<<rno<<”
“<<tot; cout<<”\n\tAverage : “<<avg; }
}; void main() {
clrscr(); statement obj;
obj.get();
obj.getsm(); obj.display(); getch();
} SOLVE IT. }
protected: int sm;
cout<<”Enter the Roll n cin>>rno;
cout<<”Enter the two ma cin>>m1>>m2;
// sm = Sports mar
Integrate hardware. Visualize data. Accelerate engineering. Reduce the time you need to visualize, create, and code engineering systems by using LabVIEW graphical programming to gain rapid access to hardware and data insights. Take advantage of a worldwide network of developers and discover why LabVIEW is the most productive tool for you.
See how at
ni.com/labview ©2017 National Instruments. All rights reserved. LabVIEW, National Instruments, NI, and
ni.com are trademarks of National Instruments. Other product and company names listed are trademarks or trade names of their respective companies. 29170
Page 1 |
Page 2 |
Page 3 |
Page 4 |
Page 5 |
Page 6 |
Page 7 |
Page 8 |
Page 9 |
Page 10 |
Page 11 |
Page 12 |
Page 13 |
Page 14 |
Page 15 |
Page 16 |
Page 17 |
Page 18 |
Page 19 |
Page 20 |
Page 21 |
Page 22 |
Page 23 |
Page 24 |
Page 25 |
Page 26 |
Page 27 |
Page 28 |
Page 29 |
Page 30 |
Page 31 |
Page 32 |
Page 33 |
Page 34 |
Page 35 |
Page 36 |
Page 37 |
Page 38 |
Page 39 |
Page 40 |
Page 41 |
Page 42 |
Page 43 |
Page 44 |
Page 45 |
Page 46 |
Page 47 |
Page 48 |
Page 49 |
Page 50 |
Page 51 |
Page 52 |
Page 53 |
Page 54 |
Page 55 |
Page 56 |
Page 57 |
Page 58 |
Page 59 |
Page 60