#include
main() {
char *s = "#include%cmain(){%c%cchar *s=%c%s%c;%c%cprintf(s,10,10,9,34,s,34,10,9,10);%c}";
printf(s, 10, 10, 9, 34, s, 34, 10, 9, 10);
system("pause");
}
代码二:
#include
main(a) {
printf(a, 34, a = "main(a){printf(a,34,a=%c%s%c,34);}", 34);
system("pause");
}