행렬

제작/기타 프로그램

[C#] 행렬 계산기 (6) - 전체 코드

코드 : using System; namespace matrixNamespace { // Matrix 클래스 class Matrix { //열과 행 변수 int row; int column; // 행렬 변수 (가변 배열로 이루어져있다) int[][] matrix; //생성자 (매개변수가 없는 것) public Matrix() { Console.WriteLine("Matrix Create..."); Console.Write("input the Row, Column (ex. 3 3) : "); string input = Console.ReadLine(); string[] row_column = input.Split(' '); // 행과 열을 입력받아 인스턴스 변수에 할당한다. this.row = Conver..

제작/기타 프로그램

[C#] 행렬 계산기 (4) - 이차원 배열로 더 간단하게 표현

코드 : using System; namespace matrixNamespace { class Matrix { int row; int column; static int[][] matrix; public Matrix() { Console.WriteLine("Matrix Create..."); Console.Write("input the Row, Column (ex. 3 3) : "); string input = Console.ReadLine(); string[] row_column = input.Split(' '); this.row = Convert.ToInt32(row_column[0]); this.column = Convert.ToInt32(row_column[1]); matrix = new int[r..

제작/기타 프로그램

[C#] 행렬 계산기(2) - 더하기, 빼기 메소드

코드 : using System; using System.Collections; using System.Linq; namespace Matrix_Calculator { class Matrix { // 행과 열 변수 private int row; private int column; // 행렬 변수 (ArrayList 사용) private ArrayList matrix; // Matrix 클래스 생성자 public Matrix() { Console.WriteLine("Matrix Creates..."); } // Matrix 클래스 생성자 (매개 변수로 행과 열 받는 경우) public Matrix(int _row, int _column) : this() { this.row = _row; this.colum..

제작/기타 프로그램

[C#] 행렬 계산기 (1) - 행렬 생성 및 입력 출력

코드 using System; using System.Collections; namespace Matrix_Calculator { class Matrix { // 행과 열 변수 private int row; private int column; // 행렬 변수 (ArrayList 사용) private ArrayList matrix; // Matrix 클래스 생성자 public Matrix() { Console.WriteLine("Matrix Creates..."); } // Matrix 클래스 생성자 (매개 변수로 행과 열 받는 경우) public Matrix(int _row, int _column) : this() { this.row = _row; this.column = _column; } // 행렬 ..

Dev.Poinguinie
'행렬' 태그의 글 목록