C++ 打印源代码(控制台)

[复制链接]
查看11 | 回复1 | 2010-3-29 12:36:13 | 显示全部楼层 |阅读模式
代码一旦变成exe,就和原来的代码(不管用C还是C++还是Java还是VB)无关了,所以不可能存在这种程序
回复

使用道具 举报

千问 | 2010-3-29 12:36:13 | 显示全部楼层
Self-Producing ProgramIn nature, a living creature can produce a copy (child/clone/baby/...) of itself via some magic. While in this assignment, your task is to write a program that can output/print the program itself.Additional requirements:Do NOT consult the search engine for answers -- at least try it first.You may not open or read the file on disk.Write the program as short as possible -- prefer less than 100 bytes
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行