一个有趣的问题

灌水区

理论上是无法实现的(逃)
by SquirrelVae @ 2019-07-19 16:55:21


E?
by LordLeft @ 2019-07-19 16:57:31


@[AKIO自动机](/space/show?uid=218905) 无限递归,无法实现(理论上)
by Purple_sword @ 2019-07-19 16:57:44


经典问题……
by AThousandSuns @ 2019-07-19 16:58:20


应该是无法实现的
by 艹poy @ 2019-07-19 17:01:14


其实可以通过文件来实现。 如下: ```cpp #include<stdio.h> FILE *a=fopen("本文件的名字.cpp", "r"); int main() { char c; /* 很多代码。。。*/ while(!feof(a)) { c=fgetc(a); putchar(c); } getchar(); } ```
by ImmortalWatcher @ 2019-07-19 17:02:28


```cpp #include<stdio.h> main() { char* s="#include<stdio.h>%cmain()%c{%cchar* s=%c%s%c;%cprintf(s,10,10,10,34,s,34,10,10);%c}"; printf(s,10,10,10,34,s,34,10,10); } ```
by AKIO自动机 @ 2019-07-19 17:02:39


我试过了,可以的。
by ImmortalWatcher @ 2019-07-19 17:02:45


@[AKIO自动机](/space/show?uid=218905) 其实我的那个比你的那个使用范围更广。
by ImmortalWatcher @ 2019-07-19 17:03:49


虽然说理论上是不行,其实是可以的。
by ImmortalWatcher @ 2019-07-19 17:04:24


| 下一页