KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD

KING'S IT WORLD


 
HomeHome  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  UsergroupsUsergroups  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
Mon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
Wed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
Mon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
Thu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
Thu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
Tue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
Thu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
Fri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
Thu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
Thu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking Digg  Social bookmarking Delicious  Social bookmarking Reddit  Social bookmarking Stumbleupon  Social bookmarking Slashdot  Social bookmarking Furl  Social bookmarking Yahoo  Social bookmarking Google  Social bookmarking Blinklist  Social bookmarking Blogmarks  Social bookmarking Technorati  

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
Powered by website analytics technology.
Keywords
mgt502 2011 cs403 MCM301 mth301 2010 CS302 MKT621 cs401 MTH101 quiz STA301 midterm papers MTH202 cs101 solved SPRING term cs605 paper mth302 quran final assignment FALL
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

Share | 
 

 cs201 4th assignment solution

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Scorpio
Posts : 638
Points : 2155
Reputation : 19
Join date : 2010-05-15
Age : 29
Location : islamabad

PostSubject: cs201 4th assignment solution   Tue Jun 29, 2010 8:51 pm

Code:

 
[b][font=garamond,serif][size=16][color=#003300][color=#cc0000]#include <iostream>
using namespace std;
class
 Student{
private:
string name;
int rollNumber;
string
semester;
double cgpa;

public:
Student(string n,int r,string s,double c )
{name=n;
rollNumber=r;
semester=s;
cgpa=c;
}
Student()
{name="";
rollNumber=0;
semester="Summer
 2010";
cgpa=4.0;
}


string get_semester()
{return semester;
}
void
 set_semester(string n)
{semester=n;
}
void set_roll(int n)
{rollNumber=n;
}
int
 get_roll()
{return rollNumber;
}
void set_name(string n)
{name=n;
}
string get_name()
{return
 name;
}
void set_cgpa(double n)
{cgpa=n;
}

double
get_cgpa()
{return cgpa;
}
void print()
{cout<<"Student
 Information\n";
cout<<"Name: "<<name<<endl;
cout<<"Roll
number: "<<rollNumber<<endl;
cout<<"Semester:
"<<semester<<endl;
cout<<"Current GPA:
"<<cgpa<<endl<<endl;
}
};

int main()
{Student a;
Student
b("name",2345,"Spring 2010",3.5);
a.print();
b.print();
system("pause");
return
 0;
}
[/color][/color][/size][/font][/b]


Back to top Go down
View user profile
 
cs201 4th assignment solution
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Astrometric Solution for HD 196885 Ab
» A Boutique and an assignment against me.
» New Baby, New Assignment, Old Dress
» Clydesdale horse assignment
» Cost accounting- CS Executive assignment

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: ASSIGNMENTS-
Jump to: