Created
September 29, 2017 07:50
-
-
Save mrgarita/e77fc6c96cce94a5bc12aed3c87a5fc8 to your computer and use it in GitHub Desktop.
C#: リストの使い方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// リストを生成 | |
List<int> list = new List<int>(); | |
// 要素を追加 | |
list.Add(100); | |
list.Add(200); | |
list.Add(300); | |
// 要素を削除 | |
list.Remove(200); | |
// リストを表示 | |
foreach (int x in list) Console.WriteLine(x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment