Thursday, July 12, 2007

google searcher in c language.......you will surely like it ... and you can also see implimentation of "stringcat" function

#include "windows.h"
#include"stdio.h"
#include"conio.h"
#include"string.h"
#include"stdlib.h"
int main()
{
int i,j,k=0,l=0;
char a[34]="http://www.google.co.in/search?q=",b[50],c[200]="&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official",s[500];
system("color f0");
printf("\t\t\t~* google searcher *~\nenter any word to search in google::>");

gets(b);
for(i=0;i<33;i++)
{s[i]=a[i];}
for(i=33;;i++)
{if(b[l]!='\0')
s[i]=b[l];
else break;
l++;}

for(j=i;;j++)
{if(c[k]!='\0')
s[j]=c[k];
else break;
k++;}
s[j]='\0';

ShellExecute(0,0,s, NULL, NULL, 0);
MessageBox(0,"Psl corp. India\ntruly ultimate\n\nclick ok to exit","made by Puneet Singh ::::: batch b6 ::::: jiit",MB_OKCANCEL);
return 0;
}

No comments: