在运行时打印源代码 [英] printing the source code in runtime

查看:94
本文介绍了在运行时打印源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在解决计算机编程奥林匹克问题,
问题之一是在运行时打印源代码,我们不能使用源代码文件,也不能将其保存在变量中并显示出来.所以有可能!!!!!!如果是,怎么办?

解决方案

这些程序称为 Quine [ ^ ].
搜索Quine,您会得到几个结果.


看看这里 [ ^ ],特别是 [ ^ ]示例.


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?

解决方案

These programs are called Quine[^].
Do a search for Quine and you will get several results.


Have a look here[^], specifically this[^] example.


这篇关于在运行时打印源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆