How can I write a code to show itself (print code to console) using standard C++ only without any external library?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tada: http://en.wikipedia.org/wiki/Quine_(computing)
On a slightly more pragmatic note, almost no one ever does this. It’s pointless. If you want to distribute source code, just put it into a tarball or zip file like a sane person.