The history of the site is lost, orkut days are gone , its facebook now , still this site survived two years of barrenness , time to resurrect.
 
HomePortalGalleryFAQSearchRegisterMemberlistUsergroupsLog inThoughts of The Lost
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Official Chat topic
Sun Dec 18, 2011 5:50 pm by Sankarô -Dark ray

» ~~Lab ~~
Mon Sep 07, 2009 10:53 pm by Sankarô -Dark ray

» Movie linxx ~ hindi
Wed Jul 22, 2009 10:56 pm by Sankarô -Dark ray

» Movie links ^__^Download for free
Wed Jul 22, 2009 10:50 pm by Sankarô -Dark ray

» So abt a forum
Sat Jun 13, 2009 10:12 am by Sankarô -Dark ray

» FMA Movie
Mon Dec 29, 2008 1:22 pm by Sankarô -Dark ray

» FMA - Extras
Mon Dec 29, 2008 1:20 pm by Sankarô -Dark ray

» Bleach -heat the soul [psp]
Mon Dec 29, 2008 1:13 pm by Sankarô -Dark ray

» Bleach
Mon Dec 29, 2008 1:00 pm by Sankarô -Dark ray

Keywords
games themes notes orkut free anime
Top posting users this week
March 2017
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendarCalendar

Share | 
 

 ~~Lab ~~

View previous topic View next topic Go down 
AuthorMessage
Sankarô -Dark ray
Admin
avatar

Number of posts : 1067
Age : 26
Registration date : 2007-12-12

PostSubject: ~~Lab ~~   Mon Sep 07, 2009 10:53 pm

Laughing

_________________
You donno who you are messing with!!

Back to top Go down
View user profile http://darkray.zforum.biz
Sankarô -Dark ray
Admin
avatar

Number of posts : 1067
Age : 26
Registration date : 2007-12-12

PostSubject: Re: ~~Lab ~~   Mon Sep 07, 2009 10:53 pm

#include
#include
class student
{
public:
int reg,m[5],tot;
public:
void setData(int r);
int getTotal()
{
tot=m[0]+m[1]+m[2]+m[3]+m[4];
return(tot);
}
};
void student:: setData(int r)
{
reg=r;
cout<<"Enter marks of 5 subjects\n";
for(int j=0;j<5;j++)
{
cin>>m[j];
}
}
void main()
{
student s[5];
int mark[5],i,r,r1,r2,h,l,avg=0;
clrscr();
for(i=0;i<5;i++)
{
cout<<"\nEnter the registration number \n";
cin>>r;
s.setData(r);
s.tot=s.getTotal();
cout<<"\nTotal os student "<< s.reg<<" is "<.tot;
}
h=s[1].tot;
l=s[1].tot;
for(i=0;i<5;i++)
{
if(s.tot>h)
{
h=s.tot;
r1=i;
}
if(s.tot.tot;
r2=i;
}
}
cout<<"The class highest is"<.tot;
}
avg=avg/5;
cout<<"The class average is "<getch();
}

_________________
You donno who you are messing with!!

Back to top Go down
View user profile http://darkray.zforum.biz
 
~~Lab ~~
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mystified Fortress :: College :) :: College Works-
Jump to: