[過去ログ]
ふらっと C#,C♯,C#(初心者用) Part141 (1002レス)
ふらっと C#,C♯,C#(初心者用) Part141 http://mevius.5ch.net/test/read.cgi/tech/1544838367/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
953: デフォルトの名無しさん [] 2020/10/16(金) 02:23:53.26 ID:kSQNYYOM using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[,] ma = new int[,] { { 1, 2, 3 }, { 4, 5, 6 } }; int[,] mb = new int[,] { { 6, 3, 4 }, { 5, 1, 2 } }; int[,] mc = new int[2, 3]; for (int i = 0; i < 2; i++) { for (int j = 0; i < 3; j++) mc[i, j] = ma[i, j] + mb[i, j]; } for (int i = 0; i < 2; i++) { for (int j = 0; j < 3; j++) Console.Write(string.Format("{000}", mc[i, j])
); } } } } System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' というエラーが起きます 配列のレンジをはみ出してはいないと思うのですが、どう直したらいいんでしょうか http://mevius.5ch.net/test/read.cgi/tech/1544838367/953
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 49 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.018s