摘要:
题目要求完全使用程序代码生成一段和自己代码一模一样的字符串。 C#编写代码如下:class Program{ static void Main(string[] args) { string s = "class P{{static void Main(){{string s={1}{0}{1};System.Console.WriteLine(s,s,(char)34);}}}}"; System.Console.WriteLine(s,s,(char)34); Console.ReadKey(true); }} 阅读全文
posted @ 2012-11-12 10:10
特困户
阅读(523)
评论(4)
推荐(0)

浙公网安备 33010602011771号