main(a)
{
a="main(a) {a=%c%s%c; printf(a,34,a,34); }" ;
printf(a,34,a,34) ;
}
2007-02-21 23:55:47
·
answer #1
·
answered by Innocence Redefined 5
·
0⤊
0⤋
simple you need to first read the source code. then output the file. so you should put the executable and source file in same directory.
2007-02-22 03:59:31
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Read the source file using FILE manipulations and print it to screen. simple!
2007-02-22 03:49:08
·
answer #3
·
answered by laughingwaves 2
·
0⤊
0⤋
Pass in (or store) the name of a file to a program. Open it up. With a series of readln's and writeln's, read the file and print it out. Don't forget to close the file.
2007-02-22 03:54:18
·
answer #4
·
answered by T J 6
·
0⤊
0⤋
if
user wants to print source file to screen;
then
printf "source file";
else
go find your own way;
endif
2007-02-22 03:54:07
·
answer #5
·
answered by everycent counts 1
·
0⤊
0⤋
strore __FILE__ in a string
system("cat string");
2007-02-22 03:47:03
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋