02-01-2011, 04:05 AM
is ka solutionn chahyee or idea bhiiii bro....
|
cs201 assignmentno 5 solution fall 2010 on 27/01/2011
|
|
02-01-2011, 04:05 AM
is ka solutionn chahyee or idea bhiiii bro....
02-01-2011, 04:14 AM
i think its good
02-01-2011, 04:18 AM
Xpert bhai GOD bless u plz upload soltn rite thx.............
02-01-2011, 04:33 AM
Yah solution nai hai assignment 5 ka
02-01-2011, 07:04 AM
please send the assignment solution of cs201,,,,,,,,,,,,,
02-01-2011, 12:51 PM
please upload it soon
02-01-2011, 03:33 PM
Respected Expert :
Assalamu Alaikum will you please help me in making internship report and presentation for misi619 ?
02-01-2011, 11:21 PM
#include<iostream.h>
class multiply { private: int myarry[10]; public: //Constructor initializing array for all four objects of class! multiply() { for(int i=0;i<=9;i++) { myarry[i]=0; } } //returns values of objects a and b on the screen void getter(multiply a,multiply b) { cout<<"Values for object a are:-"<<endl; for(int t=0;t<=9;t++) { cout<<"Value"<<"."<<t<<"\t"<<a.myarry[t]<<endl; } cout<<"Values for object b are:-"<<endl; for(int s=0;s<=9;s++) { cout<<"Value"<<"."<<s<<"\t"<<b.myarry[s]<<endl; } } //takes values from user for objects a and b void setter(multiply x,multiply y,multiply z) { cout<<"Enter values in array for object a"<<endl; for(int m=0;m<=9;m++) { cout<<"Value Please?"<<endl; cin>>x.myarry[m]; } cout<<"Enter values in array for object b"<<endl; for(int n=0;n<=9;n++) { cout<<"Value Please?"<<endl; cin>>y.myarry[n]; } getter(x,y); calculate(x,y,z); } //performs the multiplication void calculate(multiply a,multiply b,multiply c) { for(int bee=0;bee<10;bee++) { c.myarry[bee]=a.myarry[bee]*b.myarry[bee]; } result©; } //outputs result void result(multiply f) { cout<<"Your Result is"<<endl; for(int h=0;h<10;h++) { cout<<h<<"-"<<f.myarry[h]<<endl; } } }; void main() { multiply o,a,b,c; o.setter(a,b,c); }
02-01-2011, 11:22 PM
#include <iostream.h>
#include<conio.h> #include<math.h> class CRectangle { int width, height; public: void set_values (int, int); int area (void) { return (width * height); } }; void CRectangle: et_values (int a, int b){ width = a; height = b; } int main () { CRectangle a, *b, *c; CRectangle * d = new CRectangle[2]; b= new CRectangle; c= &a; a.set_values (2,4); b->set_values (6,8); d->set_values (10,12); d[1].set_values (14,16); cout<<"a area: " <<a.area()<<endl<<endl; cout<<"*b area: " <<b->area()<<endl<<endl; cout<<"*c area: " <<c->area()<<endl<<endl; cout<<"d[0] area: "<<d[0].area()<<endl<<endl; cout<< "d[1] area: " <<d[1].area()<<endl<<endl; getch(); return 0; }
02-02-2011, 12:38 AM
Dear i hope you all get the right thing from this website.
|
|
« Next Oldest | Next Newest »
|