出處:http://m955.com/wp/archives/165
//第1種宣告方式
string[] arr1 = new string[5];
//第2種宣告方式,不指定陣列大小
string[] arr2 = new string[]
{"王家豪", "鄭惠婷", "蔡昱友", "蔡雅芳", "林嬌岳"};
//第3種宣告方式,直接指定初值,比較方便
string[] arr3 = { "陳苑星", "陳宏行", "陳麗娟", "趙智和", "白嘉鳳" };
//多維陣列
string[,] arr4 = { { "王", "趙", "白" }, { "陳", "蔡", "郭" } };
//讀出arr3
for (int i = 0; i <5; i++)
{
Console.Write(arr3[i] + "\n");
}
//讀出arr4
for (int j = 0; j <2; j++)
{
for (int n = 0; n <3; n++)
Console.Write(arr4[j, n] + "\n");
}
Console.ReadLine();
2018年6月8日 星期五
訂閱:
張貼留言 (Atom)
WPF聊天室应用(ASP.NET Core SignalR)
WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search&...
-
介面,依賴反轉,單元測試 https://www.youtube.com/watch?v=GpYieGx4y6M 介面隔離,反射,特性,依賴注入 https://www.youtube.com/watch?v=3bZ4rNS_o10
-
https://mgleon08.github.io/blog/2018/07/16/jwt/ https://medium.com/%E9%BA%A5%E5%85%8B%E7%9A%84%E5%8D%8A%E8%B7%AF%E5%87%BA%E5%AE%B6%E7%AD%86%...
-
https://dotblogs.com.tw/v6610688/2015/02/19/iis_office_access_word_excel_com_interop_api_configuration https://dotblogs.com.tw/gelis/archi...
沒有留言:
張貼留言