Skip to content

Instantly share code, notes, and snippets.

@rafalcieslak
Created May 11, 2017 14:33
Show Gist options
  • Save rafalcieslak/bb4176efeb5128ef87a64aaf255eba3c to your computer and use it in GitHub Desktop.
Save rafalcieslak/bb4176efeb5128ef87a64aaf255eba3c to your computer and use it in GitHub Desktop.
C++ Quine 2
const char* code = R"(
#include <iostream>
int main() {
std::cout << "const char* code = R\"(" << code << ")\";" << code;
}
)";
#include <iostream>
int main() {
std::cout << "const char* code = R\"(" << code << ")\";" << code;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment