빼기

제작/기타 프로그램

[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#] 행렬 계산기(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..

Dev.Poinguinie
'빼기' 태그의 글 목록