3 ms·
I see it reads its own .cpp file. I wonder if you can avoid that and turn it into the equivalent of a quine somehow.
by contravariant 5y ago
I see it reads its own .cpp file. I wonder if you can avoid that and turn it into the equivalent of a quine somehow.
- phs2501 5y agoIt would be exactly a quine, you'd just ram the generated source code through the image generation algorithm rather than printing to stdout. So yes, the existence of quines means that it must be possible. It'd probably be about twice as long, though, based on the typical shape of C/C++ quines.