-1
我試圖製作一個程序,讓用戶輸入3個名稱,然後按字母順序顯示,但我不確定如何以這種方式顯示字符串 任何幫助將不勝感激按字母順序顯示名稱
如string firstName, secoundName, thirdName;
int myMoves = 1;
int myHolder;
Console.WriteLine("Please Enter The First Name: ");
firstName = Console.ReadLine();
Console.WriteLine("Please Enter The Secound Name: ");
secoundName = Console.ReadLine();
Console.WriteLine("Please Enter The Third Name: ");
thirdName = Console.ReadLine();
do
{
if()
{
}
} while (myMoves > 0);
你有搜索的StackOverflow的答案? –