| Close | Back |
#include<stdio.h>
#include<conio.h>
main()
{
char *msg;
int i,ch;
FILE *fopen(),
*fp;
if((fp=fopen("Yourmsg.c","w"))==NULL)
{
printf("\nError opening File");
exit(1);
}
printf("\nEnter a message *He* *hE*\t");
for(i=0;i<128;i++) /*128 is max chars allowed!*/
{
ch=getchar();
if(ch!='\n')
msg[i]=ch;
else
break;
}
msg[i]=0;
fprintf(fp,"\t/* ENc0dE(a)D messAGe fOR u *He* *hE* *hE* eNJOy ! */\n\n#include<stdio.h>\nmain()\n{\tint i;\n\tunsigned char m[%d]\n\t= {",strlen(msg));
for(i=0;i<strlen(msg);i++)
fprintf(fp,"%d,",msg[i]);
fprintf(fp,"};\n\t/* LooK at THeAse Co0L VaLUes ^ ThEY aRe THe ReaL STufF */\n\tclrscr();\n\tfor(i=0;i<%d;i++)\n\t\tputch(m[i]+15);\n\t/* ENc0dE(a)D ... ;) remove '+15' 2 get reaL thing*/\n\tgetch();\n}\n\t/* FollOW ThE inStRUcTionS tO eNJOy */\n\t/* ENc0dE(a)D By Rajesh ThE gReAt*/",strlen(msg));
printf("\nYourmsg.c written successfully !");
}