Pages

Sunday, October 9, 2011

student result shit program

#include<iostream.h>
02#include<conio.h>
03    class stu
04    {
05    private:
06         // char name[100];
07    public:
08        virtual getdata()=0;
09        virtual result()=0;
10        };
11    class detail:public stu
12    {
13    private:
14         char name[20][10];
15         int n, i;
16         int mark1[10], mark2[10], mark3[10];
17    public: getdata();
18        result();
19     };
20 
21    detail::getdata()
22     {
23     int n;
24     cout<<"Enter the no. of students";
25     cin>>n;
26     for(i=0;i<n;i++)
27        {
28         cout<<"Enter the name of the student \n";
29        cin>>name[i];
30         cout<<"Enter the marks for 3 subjects : ";
31         cin>>mark1[i] >> mark2[i] >>mark3[i];
32        }
33            }
34 
35     detail::result()
36       {
37     for(i=0;i<n;i++)
38      {
39     cout<<"------------------------------------------------------------------------";
40     cout<<"\n Name   \t   MARKS-1   \t MARKS-2     \t MARKS-3";
41     cout<<"\n-------------------------------------------------------------------------";
42     cout<<"\n"<<name[i][0]<<"\t\t"<<mark1[i]<<"  \t   "<<mark2[i]<<"\t"<<mark3[i];
43      }
44    if(mark1[i]>=50 && mark2[i]>=50 && mark3[i]>=50)
45    {
46    cout<<"\n------------------------------------------------------------------------";
47    cout<<"\n \n Student Name : "<<name[i]<<"\t RESULT : PASS";
48    }
49       else
50      cout<<"\n \n Student Name: "<<name[i]<<"\t RESULT: FAIL";
51      }
52 
53 
54main()
55{
56stu *ptr;  //pointer to base function
57//objects of inherited clases
58detail obj;
59clrscr();
60ptr=&obj;
61ptr->getdata();
62ptr->result();
63getch();
64return 0;
65}

Even / Odd Number


/* C Program For Checking whether a number is even or odd */

#include< stdio.h>
#include< conio.h>

void main()
{
int a;
clrscr();
printf("Enter A number : ");
scanf("%d",&a);
if(a%2 != 0)
{
printf("\nThe Number %d Is Odd",a);
}
else if(a%2 == 0)
{
printf("\nThe Number %d Is Even",a);
}
getch();
}
/******************* OUTPUT ********************
ANOTHER RULE:

#include
#include
void main()
{ clrscr() ;
int subject,topic;
printf("enter the number to find odd or even\n");
scanf("%d",&topic);
if (topic%2==0)
{
printf("the number is even%d\n",topic);
}
else
{ printf("the number is odd%d\n",topic);
}





getch();
}

Thursday, September 29, 2011

Keyboard shortcuts


yahoo Messenger …shortcuts…
1)Toggle between online friends and offline friends on your friends list…[Ctrl]+[H]
2)Signs you out of yahoo…[Ctrl]+[D]
3)Close yahoo messenger….[Ctrl]+[Q]
4)Send a message ……[Ctrl]+[M]
5)Call a computer……[Ctrl]+[L]
6)Call a phone number….[Ctrl]+[K]
7)Send SMS …..[Ctrl]+[T]
8)Send an email…..[Ctrl]+[Y]
9)Shows your display image…..[Ctrl]+[Shift]+[F8]
10)Opens preferences……….[Ctrl]+[Shift]+[P]
11)Signs you in mobile device…………[Ctrl]+[Shift]+[D]
12)Add a Contact……[Ctrl]+[Shift]+[A]

Keyboard shortcuts


EMAIL SHORTCUTS
1)Check email…..[Ctrl]+[K]
2)Write a new message….[Ctrl]+[M]
3)Attach file …..[Ctrl]+[0]
4)Send composed message….[Ctrl]+[Enter]or[Ctrl]+[Shift]+[S]
5)Go to next unread e-mail….[H]or[Shift]+[J]
6)Go to previous unread e-mail…..[Y]or[Shift]+[U]
7)Scroll up in mail body (even when focus in mail list)…..[Alt]+[Up arrow]
8)Scroll down in mail body (even when focus in mail list)….[Alt]+[Down arrow]
9)Expand current thread….[Left Arrow]
10)close current thread….[Right Arrow]
11)Expand all thread….[Shift]+[Left Arrow]
12)Close all thread….[Shift]+[Right Arrow]
13)Mark selected e-mail as read…………. [K]
14)Mark selected e-mail as read and go to next unread e-mail……[G]
15)Mark selected e-mail as read and go to previous unread e-mail…..[T]
16)Mark selected e-mail as unread…….[Shift]+[K]
17)Mark all e-mail in active view as read ….[Ctrl]+[Shift]+[A]
18)Reply to message…………[R]
19)Reply to all recipients of message including sender……….[Shift]+[R]
20)Forwarding e-mail…..[F]
21)Redirect e-mail…….[D]