没碰见过,但是我见过knocker以前编过这种程序,下面是源码:
归属权属knocker
char*s=
"# include \"stdio.h\" "
" int main(void) "
" { "
" char*t; "
" int i=0; "
" t=s; "
" "
" printf(\"char*s=\\n\\\"\"); "
" while(*s) "
" { i++; "
" if(!(i%45))printf(\"\\\"\\n\\\"\"); "
" if (*s==92||*s==34)printf(\"\\\\\"); "
" printf(\"%c\",*s++); "
" } "
" printf(\"\\\";\\n\"); "
" i=0; "
" while(*t) "
" { i++; "
" if(!(i%45))printf(\"\\n\"); "
" printf(\"%c\",*t++); "
" } "
" "
" } ";
#include "stdio.h"
int main(void)
{
char*t;
int i=0;
t=s;
printf("char*s=\n\"");
while(*s)
{ i++;
if(!(i%45))printf("\"\n\"");
if (*s==92||*s==34)printf("\\");
printf("%c",*s++);
}
printf("\";\n");
i=0;
while(*t)
{ i++;
if(!(i%25))printf("\n");
printf("%c",*t++);
}
getch();
}
[此贴子已经被作者于2005-7-17 12:55:16编辑过]
土冒