?? 朦朧詩.txt
字號:
using System;
class Poem
{
public static string[] adjective=new string [8]{"美麗的","高興的","傷心的","失落的","可愛的","調皮的","活波的","笨拙的"};
public static string[] subject=new string [8]{"太陽","花朵","星星","月亮","女孩","小貓","蝴蝶","燕子"};
public static string[] predicate=new string [7]{"思索著","追趕著","想念著","渴望著","怒視著","奔跑著","狂喊著"};
public static void Main()
{
string next;
do
{
Random r=new Random ();
for(int i=1;i<=2;i++)
{
Console.WriteLine (adjective[r.Next (adjective.Length )]+""+subject[r.Next (subject.Length )]+""+predicate[r.Next (predicate.Length )]+""+subject[r.Next (subject.Length )]);
}
Console.WriteLine ("你還想看嗎?y/n");
next=Console.ReadLine ();
}while(next.ToUpper ()!="N");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -