Click here to Skip to main content
15,913,027 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
hi i am solving computer programming Olympiad problems,
one of the problems is printing the source code in run time,and we can not use source code file and can not save it in variable and show it. so is it possible!!!??? if yes how?
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jul-11 14:16pm    
Olympiad fraud?!
--SA
Reza Oruji 24-Jul-11 15:37pm    
no!is last year question!

These programs are called Quine[^].
Do a search for Quine and you will get several results.
 
Share this answer
 
Have a look here[^], specifically this[^] example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900