Monday, August 29, 2011

Create EID greetings in C Program

0 comments
Source Code:
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<string.h>
#include<stdlib.h>
#define X 25
void main()
{
         int i,j,l,t,color=10,z;
         char temp;
         char* str="Eid Mubarak!";   /*You can change the text here what ever you want to print*/
         clrscr();
         gotoxy(X,X-1);
         l=strlen(str);
         clrscr();
         gotoxy(X,X);
         textcolor(BLUE);
         cprintf("%s",str);
         for(i=0;i<l;i++)
         {
            temp=*(str+i);
            gotoxy(X+i,X);
            printf(" ");

            for(j=X;j<50;j++)
            {
            gotoxy(X+i,j);
            z=random(color);
            textcolor(z);
            cprintf("%c",temp);
            delay(100);
            gotoxy(X+i,j);
            printf(" ");
            }
         }

getch();
}

Continue reading →
Sunday, August 28, 2011

Create your own Love-Meter using C programming.

0 comments
Create your own love-meter.Copy and paste the below code into your C compiler(Recommended:Borland C).Then compile and execute the file.

Source Code:
#include<stdlib.h>
#include<stdio.h>
#include<graphics.h>

main()
{
 int sh,q,w,i=0,j=0,k,a1,a2,count,n,m,l,p,x,y,z,gm,gn;
    char nm1[20],nm2[20];
    clrscr();
    label:clrscr();
    a1=0;
    a2=0;
    count=0;
    textcolor(4);
    cprintf("__________________________________________");

    i=0;
    textcolor(1);
    cprintf("\n\n\n\n Welcome To Love-Meter\n");

    textcolor(2);
    cprintf("* ---------------- * --------------*\n");
textcolor(3);
    cprintf(" enter your name:\n");
    scanf("%s",&nm1);
    textcolor(5);
    cprintf("  enter ur partner's:\n");
    scanf("%s",nm2);

    i=0;

    while(nm1[i]!=0)
        {
            i++;
            a1++;
}

    i=0;

    while(nm2[i]!=0)
{
   i++;
   a2++;
}

    if(a1>a2)
{
           n=a1;
           m=a2;
}
    else
{
           n=a2;
           m=a1;
}

    for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
  {
if(nm1[i]==nm2[j])
{
count++;
break;
}
  }
}

    p=count*100/m;

    textcolor(4);
    cprintf("                    .*'''*.*'''*. ");
    cprintf("                    *     .     * ");
    cprintf("                    *   %3d%  *   ",p);
    cprintf("                     *       *    ");
    cprintf("                       *   *      ");
    cprintf("                         *        ");




    textcolor(9);
    cprintf("\n\n\n LOVE percentage is %d%\n",p);

    textcolor(10);
    cprintf("HaVe A LOVING rElaTiOnShiP");

    textcolor(13);
    cprintf(" aLL tHe BeSt ...........");
    textcolor(14);
    cprintf(" \n\n\nto conti. enter 0 or to EXIT 1");
    scanf("%d",&sh);

    if(sh==0)
goto label;

    textcolor(4);
    cprintf("\n\n\n\n\n\n\n\n\n\n\n\n\n***** software designed n developed by Solvedcprogram.blogspot.com *****\n\n\n\n\n\n\n\n\n\n\n");
    getch();
}


Enjoy C Programming........... :)


Continue reading →
Thursday, August 25, 2011

Simple way to protect your computer from Viruses and Hackers

1 comments

How do you protect your computer from viruses and hackers?.
Here is the simple step to prevent attack from viruses and hackers..
This trick will against hackers and viruses.

CAUTION:You must be admin or must have admin privileges.

Step 1:
  • Go to 'Folder option' in 'control panel'---> 'View tab'
  • Uncheck 'Use Simple file sharing'---> Apply and OK
Step 2:
  • Right click on C:Drive(If operating system is installed in C:Drive)---> Properties.
  • You will see a new tab as 'Security' click on it!.
  • Select User's at 'Group or user name'(You will see all permission on C:Drive)---> Edit it.As per your requirement(Suggestion:Uncheck write permission for all users except Admin)&Apply it .
  • Restart it... 
wow! you can now securely use your computer  ... :)

Continue reading →
Wednesday, August 24, 2011

C Program to accept a password

0 comments
This is a simple login C Program.While accepting password it makes each character using "*" symbol and display the password in the next line after the user hits the enter key.It also accept backspace and acts accordingly.

SOURCE CODE:

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

char pw[25],ch;
int i;
void main();
{
clrscr();
puts("Enter your Password");
while(1)
{
if(i<0

i=0
ch=qetch(); 
if(ch==13
break; 
if(ch==8
{
 putch('b');
 putch(null); 
putch('b'); 
-i; 
continue

pw[i++]=ch; 
ch='*'
putch(ch); 
printf("nn%s",pw); 
getch(); 
}
Continue reading →