Monday, November 22, 2010

Re: [discussion_vu] mth101 2 idea sol by tayyab modified version

#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
class library
{
private:
char topicname[10];
char name[10];
char auther[10];
int srlno,date,mm,yy;
char editer[10];
int rollno;
char dpt[10];

public:
void magzine();
void books();
void newsPaper();
void thesis();
};

void library::books()
{ cout<<"Student name:"; cin>>name;
cout<<"\nrollno:"; cin>>rollno;
cout<<"\nEnter Date:"; cin>>date;
cout<<"\tEnter Month:"; cin>>mm;
cout<<"\tEnter Year:"; cin>>yy;
cout<<"Enter the dpt:"; cin>>dpt;
cout<<"Authe name:"; cin>>auther;
cout<<"you have to issued book";
}
void library::magzine()
{
cout<<"Student name:"; cin>>name;
cout<<"\nrollno:"; cin>>rollno;
cout<<"\nEnter Date:"; cin>>date;
cout<<"\tEnter Month:"; cin>>mm;
cout<<"\tEnter Year:"; cin>>yy;
cout<<"Enter the dpt:"; cin>>dpt;
cout<<"ENter he name of topic you want read:"; cin>>topicname;

}
void library::thesis()
{ cout<<"Student name:"; cin>>name;
cout<<"\nrollno:"; cin>>rollno;
cout<<"\nEnter Date:"; cin>>date;
cout<<"\tEnter Month:"; cin>>mm;
cout<<"\tEnter Year:"; cin>>yy;
cout<<"Enter the dpt:"; cin>>dpt;
cout<<"you read the thesis only";

}
void library::newsPaper()
{
cout<<"Enterthe name of Student";
cin>>name;
cout<<"\nEnter the Rollno";
cin>>rollno;
cout<<"\nYou read the Newspaper";
}
void main()
{
clrscr();
int a;
char choice;
library lib;
do
{
cout<<"1 for thesis:\n2 for issue book\n3 for NewsPaper\n4 for Read thesis\nEnter your choice:";
cin>>a;
switch(a)
{
case 1:
lib.magzine();
break;
case 2:
lib.books();
break;
case 3:
lib.newsPaper();
break;
case 4:
lib.thesis();
break;
}
cout<<"\n\n\nYou chose again then enter Y else N";
cin>>choice;
}
while(choice=='y');
getch();
}






*~ WS ~*
*~ Devil Jin ~*
*
Bscs 4th Semester *



On Mon, Nov 22, 2010 at 9:39 PM, Ali Raza <razaali.vu@gmail.com> wrote:
need cs 304 2nd assignment sol sooon plzzzzz


 
On Mon, Nov 22, 2010 at 1:15 AM, ЀVÏ£ JÍÑ <waqass.da1@gmail.com> wrote:
CHECK ATTACHMENT





*~ WS ~*
*~ Devil Jin ~*
*
Bscs 4th Semester *

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

No comments:

Post a Comment

PAID CONTENT